From 019d30666cea1b0175bd69b1ae151c12b1d6b89a Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 6 Aug 2014 09:19:19 +1000 Subject: Bug [#1633]. Redraw selection after SCI_DELWORDRIGHT. --- src/Editor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 13997de9f..7fb849114 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3377,6 +3377,7 @@ int Editor::KeyCommand(unsigned int iMessage) { break; case SCI_DELWORDRIGHT: { UndoGroup ug(pdoc); + InvalidateSelection(sel.RangeMain(), true); sel.RangeMain().caret = SelectionPosition( InsertSpace(sel.RangeMain().caret.Position(), sel.RangeMain().caret.VirtualSpace())); sel.RangeMain().anchor = sel.RangeMain().caret; @@ -3386,6 +3387,7 @@ int Editor::KeyCommand(unsigned int iMessage) { break; case SCI_DELWORDRIGHTEND: { UndoGroup ug(pdoc); + InvalidateSelection(sel.RangeMain(), true); sel.RangeMain().caret = SelectionPosition( InsertSpace(sel.RangeMain().caret.Position(), sel.RangeMain().caret.VirtualSpace())); int endWord = pdoc->NextWordEnd(sel.MainCaret(), 1); -- cgit v1.2.3