diff options
author | nyamatongwe <devnull@localhost> | 2010-02-08 23:39:26 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-02-08 23:39:26 +0000 |
commit | 364c2797e55ea5ccf1efffe7373c23e20313c083 (patch) | |
tree | 9a8d2ee9832e8476a6b63f8a0e1386d6206007c8 /src | |
parent | 7aa86f3821aec18088ccb419b9ed92529ea227bb (diff) | |
download | scintilla-mirror-364c2797e55ea5ccf1efffe7373c23e20313c083.tar.gz |
Fix for bug #2947064 SCI_SETSEL leaves multiple selections
Diffstat (limited to 'src')
-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 f7c5a10fd..17ac1687a 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6533,6 +6533,8 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { nEnd = pdoc->Length(); if (nStart < 0) nStart = nEnd; // Remove selection + InvalidateSelection(SelectionRange(nStart, nEnd)); + sel.Clear(); sel.selType = Selection::selStream; SetSelection(nEnd, nStart); EnsureCaretVisible(); |