aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-07-10 03:45:44 +0000
committernyamatongwe <unknown>2009-07-10 03:45:44 +0000
commitfc9f5dc61f4c817d002b12988982d4c715bdd607 (patch)
tree4b0ab25e1a6fa5802fcf2f730d5c12255474c38c /src
parent784bfcdf8f6b6e9a54399f6f8de3b1aafac39cc7 (diff)
downloadscintilla-mirror-fc9f5dc61f4c817d002b12988982d4c715bdd607.tar.gz
Stop Backspace from deleting line starts when selection is rectangular.
Diffstat (limited to 'src')
-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();