From 601fc21982319ebe4e1408291b86d1303e1060eb Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 24 Oct 2009 06:20:00 +0000 Subject: Added undo grouping for SCI_DELWORDRIGHT and SCI_DELWORDRIGHTEND. --- src/Editor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); -- cgit v1.2.3