aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-07-10 03:45:44 +0000
committernyamatongwe <devnull@localhost>2009-07-10 03:45:44 +0000
commit9d577544b8535caf413cf6bc227858fd4ed92cfc (patch)
tree4b0ab25e1a6fa5802fcf2f730d5c12255474c38c
parent50d215e3ac79be5f256d66f1911ab6582e5851d6 (diff)
downloadscintilla-mirror-9d577544b8535caf413cf6bc227858fd4ed92cfc.tar.gz
Stop Backspace from deleting line starts when selection is rectangular.
-rw-r--r--src/Editor.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index a1b403f19..1cfa6df02 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3909,6 +3909,8 @@ void Editor::DelChar() {
}
void Editor::DelCharBack(bool allowLineStartDeletion) {
+ if (sel.IsRectangular())
+ allowLineStartDeletion = false;
const bool undoBracketNeeded = (sel.Count() > 1) || !sel.Empty();
if (undoBracketNeeded)
pdoc->BeginUndoAction();