From 784307bd35d7ad60a291ed67f6c77a3b10dc771c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 3 Mar 2010 08:57:20 +0000 Subject: Allow multiple uses of Delete key to coalesce into a single undo action. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index d09187f10..d25099c1a 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3912,9 +3912,9 @@ bool Editor::CanPaste() { } void Editor::Clear() { - UndoGroup ug(pdoc); // If multiple selections, don't delete EOLS if (sel.Empty()) { + UndoGroup ug(pdoc, sel.Count() > 1); for (size_t r=0; r