From dfb2e86c342ead572a706b1b562ae1b100da23fb Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 11 Aug 2009 23:36:02 +0000 Subject: When selection is rectangular do not collapse it to a single selection when performing a deletion, only when adding characters. --- src/Editor.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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 1) || !sel.Empty()); -- cgit v1.2.3