From fa3aa3c1a34b80efc7680939c4c65496dc91a54f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 15 Feb 2021 09:01:14 +1100 Subject: Add + key to duplicate selections and to merge overlapping ones This is an experiment and might get reverted if overlapping selections prove too cumbersome. Fixes #4041 --- src/selection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/selection.cc') 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 list, size_t main) m_selections = std::move(list); m_main = main; m_timestamp = m_buffer->timestamp(); - sort_and_merge_overlapping(); + sort(); check_invariant(); } -- cgit v1.2.3