aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-10-24 06:20:00 +0000
committernyamatongwe <unknown>2009-10-24 06:20:00 +0000
commit601fc21982319ebe4e1408291b86d1303e1060eb (patch)
treeaa5995c070aba9c2e999f04baa70df1dc547982b /src
parentc869f3279b94f7f5293e9b3afe9e78c6fa4f0d1c (diff)
downloadscintilla-mirror-601fc21982319ebe4e1408291b86d1303e1060eb.tar.gz
Added undo grouping for SCI_DELWORDRIGHT and SCI_DELWORDRIGHTEND.
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 847a0d27a..d8bfced13 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5009,6 +5009,7 @@ int Editor::KeyCommand(unsigned int iMessage) {
}
break;
case SCI_DELWORDRIGHT: {
+ UndoGroup ug(pdoc);
sel.RangeMain().caret = SelectionPosition(
InsertSpace(sel.RangeMain().caret.Position(), sel.RangeMain().caret.VirtualSpace()));
int endWord = pdoc->NextWordStart(sel.MainCaret(), 1);
@@ -5016,6 +5017,7 @@ int Editor::KeyCommand(unsigned int iMessage) {
}
break;
case SCI_DELWORDRIGHTEND: {
+ UndoGroup ug(pdoc);
sel.RangeMain().caret = SelectionPosition(
InsertSpace(sel.RangeMain().caret.Position(), sel.RangeMain().caret.VirtualSpace()));
int endWord = pdoc->NextWordEnd(sel.MainCaret(), 1);