aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-11-29 07:50:35 +1100
committerNeil <nyamatongwe@gmail.com>2018-11-29 07:50:35 +1100
commit1887ae76f92913b12e2b94f0b047e3b63d491656 (patch)
tree5a1ea3d982693249b3eb779d67b0a997f08d560f
parentf81f65938e155ab4647db0c915a3430f2281f3d7 (diff)
downloadscintilla-mirror-1887ae76f92913b12e2b94f0b047e3b63d491656.tar.gz
Backport: Notify with SC_UPDATE_SELECTION when user performs a multiple selection add.
Backport of changeset 7181:77e17d7f972b.
-rw-r--r--doc/ScintillaHistory.html3
-rw-r--r--src/Editor.cxx1
2 files changed, 4 insertions, 0 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index cf6429ba1..164563cbb 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -559,6 +559,9 @@
<a href="https://sourceforge.net/p/scintilla/bugs/2054/">Bug #2054</a>.
</li>
<li>
+ Notify with SC_UPDATE_SELECTION when user performs a multiple selection add.
+ </li>
+ <li>
On Cocoa, fix a crash that occurred when entering a dead key diacritic then a character
that can not take that diacritic, such as option+e (acute accent) followed by g.
<a href="https://sourceforge.net/p/scintilla/bugs/2061/">Bug #2061</a>.
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 8e6567a7d..b176c0465 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -770,6 +770,7 @@ void Editor::MultipleSelectAdd(AddNumber addNumber) {
selectedText.c_str(), searchFlags, &lengthFound);
if (pos >= 0) {
sel.AddSelection(SelectionRange(pos + lengthFound, pos));
+ ContainerNeedsUpdate(SC_UPDATE_SELECTION);
ScrollRange(sel.RangeMain());
Redraw();
if (addNumber == addOne)