aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-08-11 23:36:02 +0000
committernyamatongwe <unknown>2009-08-11 23:36:02 +0000
commitdfb2e86c342ead572a706b1b562ae1b100da23fb (patch)
tree6582332872fe57f5055b2825df6e93fe2d4aec22 /src/Editor.cxx
parentb9d2010b317f8af1cc05c5bc93086b3f768b8eed (diff)
downloadscintilla-mirror-dfb2e86c342ead572a706b1b562ae1b100da23fb.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/Editor.cxx')
-rw-r--r--src/Editor.cxx6
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());