From 9d577544b8535caf413cf6bc227858fd4ed92cfc Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 10 Jul 2009 03:45:44 +0000 Subject: Stop Backspace from deleting line starts when selection is rectangular. --- src/Editor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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(); -- cgit v1.2.3