diff options
| author | Maxime Coste <mawww@kakoune.org> | 2020-05-29 11:59:59 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2020-05-29 12:00:02 +1000 |
| commit | 63371da8aa9edd7f7812c8a56ad573e46df111fd (patch) | |
| tree | e92e603b5b4463c95d80ef9eb21d61af08b7dd25 /src/selection.hh | |
| parent | 94f33bb63862357557ef533126a41d64b12f1c53 (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.hh | 1 |
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(); } |
