diff options
| author | nyamatongwe <devnull@localhost> | 2011-01-12 14:19:38 +1100 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2011-01-12 14:19:38 +1100 |
| commit | bbef58d9821b621cb58401e7dca81795e614329b (patch) | |
| tree | ffc80a871d098737dc7dd1b9ebc164518f63dfea /src | |
| parent | 17e47f98ca2f6d40ace195da40cf80dc3cda49bb (diff) | |
| download | scintilla-mirror-bbef58d9821b621cb58401e7dca81795e614329b.tar.gz | |
Ensure empty selection after delete word right.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 7f51ced64..5b908ac6f 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5237,6 +5237,7 @@ int Editor::KeyCommand(unsigned int iMessage) { UndoGroup ug(pdoc); sel.RangeMain().caret = SelectionPosition( InsertSpace(sel.RangeMain().caret.Position(), sel.RangeMain().caret.VirtualSpace())); + sel.RangeMain().anchor = sel.RangeMain().caret; int endWord = pdoc->NextWordStart(sel.MainCaret(), 1); pdoc->DeleteChars(sel.MainCaret(), endWord - sel.MainCaret()); } |
