diff options
author | nyamatongwe <devnull@localhost> | 2009-10-24 06:20:00 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-10-24 06:20:00 +0000 |
commit | 080c819196de3573433269fa6452cdb57c713cf8 (patch) | |
tree | aa5995c070aba9c2e999f04baa70df1dc547982b | |
parent | 5ec4b3782884bf43499c9ddd52998eacf1f70a6f (diff) | |
download | scintilla-mirror-080c819196de3573433269fa6452cdb57c713cf8.tar.gz |
Added undo grouping for SCI_DELWORDRIGHT and SCI_DELWORDRIGHTEND.
-rw-r--r-- | src/Editor.cxx | 2 |
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); |