aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-03-03 12:31:05 +1100
committerNeil <nyamatongwe@gmail.com>2019-03-03 12:31:05 +1100
commite0453f3669c057174f647c6ab0fc10c8180c84c1 (patch)
tree358504d74364b54ddfe9c5904ee6dde6747de922
parent6c53954dcfe6af820d8de19df94f6b44ab4068d5 (diff)
downloadscintilla-mirror-e0453f3669c057174f647c6ab0fc10c8180c84c1.tar.gz
Backport: Bug [#2083]. Ensure container notified if Insert pressed when caret off-screen.
Backport of changeset 7285:9fcf43a91078.
-rw-r--r--doc/ScintillaHistory.html4
-rw-r--r--src/Editor.cxx4
2 files changed, 8 insertions, 0 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index 22398797d..266e9732f 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -595,6 +595,10 @@
for rectangular or thin selection by performing no action.
<a href="https://sourceforge.net/p/scintilla/bugs/2078/">Bug #2078</a>.
</li>
+ <li>
+ Ensure container notified if Insert pressed when caret off-screen.
+ <a href="https://sourceforge.net/p/scintilla/bugs/2083/">Bug #2083</a>.
+ </li>
<li>
Platform layer font cache removed on Win32 as there is a platform-independent cache.
</li>
diff --git a/src/Editor.cxx b/src/Editor.cxx
index b0a092720..90520856f 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3792,6 +3792,7 @@ int Editor::KeyCommand(unsigned int iMessage) {
inOverstrike = !inOverstrike;
ContainerNeedsUpdate(SC_UPDATE_SELECTION);
ShowCaretAtCurrentPosition();
+ SetIdle(true);
break;
case SCI_CANCEL: // Cancel any modes - handled in subclass
// Also unselect text
@@ -4947,6 +4948,8 @@ void Editor::ButtonUpWithModifiers(Point pt, unsigned int curTime, int modifiers
}
bool Editor::Idle() {
+ NotifyUpdateUI();
+
bool needWrap = Wrapping() && wrapPending.NeedsWrap();
if (needWrap) {
@@ -7735,6 +7738,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
inOverstrike = wParam != 0;
ContainerNeedsUpdate(SC_UPDATE_SELECTION);
ShowCaretAtCurrentPosition();
+ SetIdle(true);
}
break;