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(); }