diff options
author | nyamatongwe <devnull@localhost> | 2009-08-11 23:36:02 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-08-11 23:36:02 +0000 |
commit | c1839714a00b09c9d9eadbefd05ec41843d1a289 (patch) | |
tree | 6582332872fe57f5055b2825df6e93fe2d4aec22 /src | |
parent | 67c248cb749738ee7967af65da57dce43276f036 (diff) | |
download | scintilla-mirror-c1839714a00b09c9d9eadbefd05ec41843d1a289.tar.gz |
When selection is rectangular do not collapse it to a single selection when
performing a deletion, only when adding characters.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 2407d2b30..70f144ff7 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3760,7 +3760,8 @@ void Editor::AddCharUTF(char *s, unsigned int len, bool treatAsDBCS) { } void Editor::ClearSelection() { - FilterSelections(); + if (!sel.IsRectangular()) + FilterSelections(); UndoGroup ug(pdoc); for (size_t r=0; r<sel.Count(); r++) { if (!sel.Range(r).Empty()) { @@ -3922,7 +3923,8 @@ void Editor::DelChar() { } void Editor::DelCharBack(bool allowLineStartDeletion) { - FilterSelections(); + if (!sel.IsRectangular()) + FilterSelections(); if (sel.IsRectangular()) allowLineStartDeletion = false; UndoGroup ug(pdoc, (sel.Count() > 1) || !sel.Empty()); |