summaryrefslogtreecommitdiff
path: root/src/selection.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2021-02-15 09:01:14 +1100
committerMaxime Coste <mawww@kakoune.org>2021-02-15 09:01:14 +1100
commitfa3aa3c1a34b80efc7680939c4c65496dc91a54f (patch)
tree805c8dae887f24a75ad13b1dbc9683646043ebde /src/selection.cc
parentdea44e4964e97d29b9a9ec493fec02b3d41e5345 (diff)
Add + key to duplicate selections and <a-+> to merge overlapping ones
This is an experiment and might get reverted if overlapping selections prove too cumbersome. Fixes #4041
Diffstat (limited to 'src/selection.cc')
-rw-r--r--src/selection.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selection.cc b/src/selection.cc
index 4c908efb..350b3acc 100644
--- a/src/selection.cc
+++ b/src/selection.cc
@@ -48,7 +48,7 @@ void SelectionList::set(Vector<Selection> list, size_t main)
m_selections = std::move(list);
m_main = main;
m_timestamp = m_buffer->timestamp();
- sort_and_merge_overlapping();
+ sort();
check_invariant();
}