summaryrefslogtreecommitdiff
path: root/src/editor.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-02-21 18:44:17 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-02-21 18:44:17 +0100
commit5f446d9aecae85e90e0902857192efd0b56c41b9 (patch)
tree64f788de99ba7cb8e65bcb5cb25e4a171c0acd17 /src/editor.cc
parentd647e817a44c7d60a035c159a7d041e70f816668 (diff)
try to merge selections when begining incremental insertion
Diffstat (limited to 'src/editor.cc')
-rw-r--r--src/editor.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/editor.cc b/src/editor.cc
index d04c1305..34900ab1 100644
--- a/src/editor.cc
+++ b/src/editor.cc
@@ -470,6 +470,7 @@ IncrementalInserter::IncrementalInserter(Editor& editor, InsertMode mode)
}
}
}
+ sort_and_merge_overlapping(editor.m_selections);
editor.check_invariant();
}