aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-12-11 11:05:12 +1100
committernyamatongwe <devnull@localhost>2010-12-11 11:05:12 +1100
commit1e03c3b80c7543fa94e9d9da55a618e848089feb (patch)
treee37735b7a8f34312173185f8daed3f172bd1033c /src/Editor.cxx
parent827332df11d2ec8436d287473f916274822dd139 (diff)
downloadscintilla-mirror-1e03c3b80c7543fa94e9d9da55a618e848089feb.tar.gz
Make multiple selection multi-paste work when multi-type is off. Bug #3126221.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 6cf8d7490..5ed69b36b 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3912,8 +3912,8 @@ void Editor::InsertPaste(SelectionPosition selStart, const char *text, int len)
}
}
-void Editor::ClearSelection() {
- if (!sel.IsRectangular())
+void Editor::ClearSelection(bool retainMultipleSelections) {
+ if (!sel.IsRectangular() && !retainMultipleSelections)
FilterSelections();
UndoGroup ug(pdoc);
for (size_t r=0; r<sel.Count(); r++) {