From 85ac8edfa719730ace53b14606c7be36458142ef Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 8 Feb 2010 23:39:26 +0000 Subject: Fix for bug #2947064 SCI_SETSEL leaves multiple selections --- src/Editor.cxx | 2 ++ 1 file changed, 2 insertions(+) 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(); -- cgit v1.2.3