diff options
author | nyamatongwe <devnull@localhost> | 2010-03-03 08:57:20 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-03-03 08:57:20 +0000 |
commit | 784307bd35d7ad60a291ed67f6c77a3b10dc771c (patch) | |
tree | 661b9657d328b7b8dd8a3f01482861833c5bb70e /src | |
parent | 56b3b3e10388a4adf8f6c952caa6e94546c912e2 (diff) | |
download | scintilla-mirror-784307bd35d7ad60a291ed67f6c77a3b10dc771c.tar.gz |
Allow multiple uses of Delete key to coalesce into a single undo action.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<sel.Count(); r++) { if (!RangeContainsProtected(sel.Range(r).caret.Position(), sel.Range(r).caret.Position() + 1)) { if (sel.Range(r).Start().VirtualSpace()) { |