diff options
author | John Ehresman <devnull@localhost> | 2015-11-15 11:56:17 +1100 |
---|---|---|
committer | John Ehresman <devnull@localhost> | 2015-11-15 11:56:17 +1100 |
commit | c89d00223a7f4926217e0c4478209b2cc5a97ebf (patch) | |
tree | 8de9adfb3059270c12c0a5821f14f054206ed4cc | |
parent | f30f698ac1d45c47a15a21f36009fe25eec35040 (diff) | |
download | scintilla-mirror-c89d00223a7f4926217e0c4478209b2cc5a97ebf.tar.gz |
Send SCN_UPDATEUI with SC_UPDATE_SELECTION when application changes multiple
selection.
-rw-r--r-- | doc/ScintillaHistory.html | 4 | ||||
-rw-r--r-- | src/Editor.cxx | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 0639d28fb..00020af26 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -503,6 +503,10 @@ the document is already styled when the user scrolls to it. </li> <li> + Send SCN_UPDATEUI with SC_UPDATE_SELECTION when the application changes multiple + selection. + </li> + <li> On GTK+ on OS X, fix warning during destruction. <a href="http://sourceforge.net/p/scintilla/bugs/1777/">Bug #1777</a>. </li> diff --git a/src/Editor.cxx b/src/Editor.cxx index a86f8c96e..d7cbe11ee 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -7830,6 +7830,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_CLEARSELECTIONS: sel.Clear(); + ContainerNeedsUpdate(SC_UPDATE_SELECTION); Redraw(); break; @@ -7840,16 +7841,19 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_ADDSELECTION: sel.AddSelection(SelectionRange(static_cast<int>(wParam), static_cast<int>(lParam))); + ContainerNeedsUpdate(SC_UPDATE_SELECTION); Redraw(); break; case SCI_DROPSELECTIONN: sel.DropSelection(static_cast<int>(wParam)); + ContainerNeedsUpdate(SC_UPDATE_SELECTION); Redraw(); break; case SCI_SETMAINSELECTION: sel.SetMain(static_cast<int>(wParam)); + ContainerNeedsUpdate(SC_UPDATE_SELECTION); Redraw(); break; @@ -7858,6 +7862,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_SETSELECTIONNCARET: sel.Range(wParam).caret.SetPosition(static_cast<int>(lParam)); + ContainerNeedsUpdate(SC_UPDATE_SELECTION); Redraw(); break; @@ -7866,6 +7871,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_SETSELECTIONNANCHOR: sel.Range(wParam).anchor.SetPosition(static_cast<int>(lParam)); + ContainerNeedsUpdate(SC_UPDATE_SELECTION); Redraw(); break; case SCI_GETSELECTIONNANCHOR: @@ -7873,6 +7879,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_SETSELECTIONNCARETVIRTUALSPACE: sel.Range(wParam).caret.SetVirtualSpace(static_cast<int>(lParam)); + ContainerNeedsUpdate(SC_UPDATE_SELECTION); Redraw(); break; @@ -7881,6 +7888,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_SETSELECTIONNANCHORVIRTUALSPACE: sel.Range(wParam).anchor.SetVirtualSpace(static_cast<int>(lParam)); + ContainerNeedsUpdate(SC_UPDATE_SELECTION); Redraw(); break; @@ -7889,6 +7897,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_SETSELECTIONNSTART: sel.Range(wParam).anchor.SetPosition(static_cast<int>(lParam)); + ContainerNeedsUpdate(SC_UPDATE_SELECTION); Redraw(); break; @@ -7897,6 +7906,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_SETSELECTIONNEND: sel.Range(wParam).caret.SetPosition(static_cast<int>(lParam)); + ContainerNeedsUpdate(SC_UPDATE_SELECTION); Redraw(); break; |