summaryrefslogtreecommitdiff
path: root/src/selection.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2020-05-29 11:59:59 +1000
committerMaxime Coste <mawww@kakoune.org>2020-05-29 12:00:02 +1000
commit63371da8aa9edd7f7812c8a56ad573e46df111fd (patch)
treee92e603b5b4463c95d80ef9eb21d61af08b7dd25 /src/selection.hh
parent94f33bb63862357557ef533126a41d64b12f1c53 (diff)
Avoid to_remove vector in select helper function
Remove the need to allocate anything when removing selections.
Diffstat (limited to 'src/selection.hh')
-rw-r--r--src/selection.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/selection.hh b/src/selection.hh
index af56856e..28eca5f2 100644
--- a/src/selection.hh
+++ b/src/selection.hh
@@ -125,6 +125,7 @@ struct SelectionList
const_iterator end() const { return m_selections.end(); }
void remove(size_t index);
+ void remove_from(size_t index);
const Selection* data() const { return m_selections.data(); }
size_t size() const { return m_selections.size(); }