aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJustin Dailey <unknown>2017-07-07 12:55:23 +1000
committerJustin Dailey <unknown>2017-07-07 12:55:23 +1000
commit554dc6a20cc1f0494ae7035e3cb03d632edbef83 (patch)
tree39ccd14d837c46efc294efbefc706d589ea94072 /src
parent056dee74549d6b6e5c7abba8725115501bcddc93 (diff)
downloadscintilla-mirror-554dc6a20cc1f0494ae7035e3cb03d632edbef83.tar.gz
Redraw when overtype changed so caret change visible even when not blinking.
Notify application with SC_UPDATE_SELECTION when overtype changed - previously sent SC_UPDATE_CONTENT.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 2294105b2..740e230f8 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3733,9 +3733,8 @@ int Editor::KeyCommand(unsigned int iMessage) {
break;
case SCI_EDITTOGGLEOVERTYPE:
inOverstrike = !inOverstrike;
+ ContainerNeedsUpdate(SC_UPDATE_SELECTION);
ShowCaretAtCurrentPosition();
- ContainerNeedsUpdate(SC_UPDATE_CONTENT);
- NotifyUpdateUI();
break;
case SCI_CANCEL: // Cancel any modes - handled in subclass
// Also unselect text
@@ -7637,7 +7636,11 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
}
case SCI_SETOVERTYPE:
- inOverstrike = wParam != 0;
+ if (inOverstrike != (wParam != 0)) {
+ inOverstrike = wParam != 0;
+ ContainerNeedsUpdate(SC_UPDATE_SELECTION);
+ ShowCaretAtCurrentPosition();
+ }
break;
case SCI_GETOVERTYPE: