From 1fb971e3896df956e9fab1a680e96edde8d067c1 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 14 May 2013 13:58:41 +0200 Subject: [PATCH] Editor::select(Selection, SelectMode::Extend) now only keeps the extended main selection --- src/editor.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editor.cc b/src/editor.cc index ac7f4ec8..324ee92c 100644 --- a/src/editor.cc +++ b/src/editor.cc @@ -255,7 +255,8 @@ void Editor::select(const Selection& selection, SelectMode mode) else if (mode == SelectMode::Extend) { m_selections[m_main_sel].merge_with(selection); - sort_and_merge_overlapping(m_selections, m_main_sel); + m_selections = SelectionList{ std::move(m_selections[m_main_sel]) }; + m_main_sel = 0; } else if (mode == SelectMode::Append) {