aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-02-08 23:39:26 +0000
committernyamatongwe <devnull@localhost>2010-02-08 23:39:26 +0000
commit364c2797e55ea5ccf1efffe7373c23e20313c083 (patch)
tree9a8d2ee9832e8476a6b63f8a0e1386d6206007c8 /src
parent7aa86f3821aec18088ccb419b9ed92529ea227bb (diff)
downloadscintilla-mirror-364c2797e55ea5ccf1efffe7373c23e20313c083.tar.gz
Fix for bug #2947064 SCI_SETSEL leaves multiple selections
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
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();