summaryrefslogtreecommitdiff
path: root/src/selection.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-05-29 23:12:04 +1000
committerMaxime Coste <mawww@kakoune.org>2019-05-29 23:12:04 +1000
commit1ebea85e6f07aeb6a8287b8043480f56f0e58edb (patch)
treec67f3e546db9a8582b524839f7f7e89c0e60c4d7 /src/selection.hh
parent7efdbb456d6855fe72790050d067c8a1b66993ba (diff)
Do not merge selections on backspace in insert mode
Fixes #2861
Diffstat (limited to 'src/selection.hh')
-rw-r--r--src/selection.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selection.hh b/src/selection.hh
index f83d4e4b..df1459e6 100644
--- a/src/selection.hh
+++ b/src/selection.hh
@@ -65,7 +65,7 @@ inline bool overlaps(const Selection& lhs, const Selection& rhs)
}
void update_selections(Vector<Selection>& selections, size_t& main,
- Buffer& buffer, size_t timestamp);
+ Buffer& buffer, size_t timestamp, bool merge = true);
bool compare_selections(const Selection& lhs, const Selection& rhs);
void sort_selections(Vector<Selection>& selections, size_t& main);
@@ -97,7 +97,7 @@ struct SelectionList
struct UnsortedTag {};
SelectionList(UnsortedTag, Buffer& buffer, Vector<Selection> s, size_t timestamp, size_t main);
- void update();
+ void update(bool merge = true);
void check_invariant() const;