aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-08-06 09:19:19 +1000
committerNeil <nyamatongwe@gmail.com>2014-08-06 09:19:19 +1000
commitb94922b75e23f9f32be5c1a2d573be156ca3a98e (patch)
tree9e715f89926b4d642ef4ce80db2f93a9cbe577f1 /src/Editor.cxx
parent2869f8eea181d2038799b2542b88541dd74a56ec (diff)
downloadscintilla-mirror-b94922b75e23f9f32be5c1a2d573be156ca3a98e.tar.gz
Bug [#1633]. Redraw selection after SCI_DELWORDRIGHT.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx2
1 files changed, 2 insertions, 0 deletions
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);