diff options
| author | nyamatongwe <unknown> | 2009-08-11 23:36:02 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2009-08-11 23:36:02 +0000 |
| commit | dfb2e86c342ead572a706b1b562ae1b100da23fb (patch) | |
| tree | 6582332872fe57f5055b2825df6e93fe2d4aec22 | |
| parent | b9d2010b317f8af1cc05c5bc93086b3f768b8eed (diff) | |
| download | scintilla-mirror-dfb2e86c342ead572a706b1b562ae1b100da23fb.tar.gz | |
When selection is rectangular do not collapse it to a single selection when
performing a deletion, only when adding characters.
| -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()); |
