aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-02-08 23:39:26 +0000
committernyamatongwe <unknown>2010-02-08 23:39:26 +0000
commit85ac8edfa719730ace53b14606c7be36458142ef (patch)
tree9a8d2ee9832e8476a6b63f8a0e1386d6206007c8 /src/Editor.cxx
parent8a4bc847ad381efdc38b1f646d97e341373e9d24 (diff)
downloadscintilla-mirror-85ac8edfa719730ace53b14606c7be36458142ef.tar.gz
Fix for bug #2947064 SCI_SETSEL leaves multiple selections
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 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();