aboutsummaryrefslogtreecommitdiff
path: root/src/scintilla_backports/6339_79f86be9e988.patch
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2017-11-06 18:03:57 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2017-11-06 18:03:57 -0500
commit3ba9f505933cc9fb7e8ccf6e0cf04740235c2816 (patch)
tree57bed97a3d72a080cd3d643d493345cf11694359 /src/scintilla_backports/6339_79f86be9e988.patch
parent5023b6e422f1a8d71c93c076d3d58cb48693def7 (diff)
downloadtextadept-3ba9f505933cc9fb7e8ccf6e0cf04740235c2816.tar.gz
textadept-3ba9f505933cc9fb7e8ccf6e0cf04740235c2816.zip
Backported bugfixes and changes from Scintilla 4.0.0 to 4.0.2.
Diffstat (limited to 'src/scintilla_backports/6339_79f86be9e988.patch')
-rw-r--r--src/scintilla_backports/6339_79f86be9e988.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/scintilla_backports/6339_79f86be9e988.patch b/src/scintilla_backports/6339_79f86be9e988.patch
new file mode 100644
index 00000000..70a7b037
--- /dev/null
+++ b/src/scintilla_backports/6339_79f86be9e988.patch
@@ -0,0 +1,51 @@
+# HG changeset patch
+# User Justin Dailey
+# Date 1499396123 -36000
+# Node ID 79f86be9e988efc5b1462ae549c271c4f3a1b82c
+# Parent 5a311da5df4077a7666cbfede428d8f29a6d14e6
+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.
+
+diff -r 5a311da5df40 -r 79f86be9e988 doc/ScintillaHistory.html
+--- a/doc/ScintillaHistory.html Mon Jul 03 05:45:07 2017 -0700
++++ b/doc/ScintillaHistory.html Fri Jul 07 12:55:23 2017 +1000
+@@ -565,6 +565,11 @@
+ <a href="http://sourceforge.net/p/scintilla/bugs/1919/">Bug #1919</a>.
+ </li>
+ <li>
++ Ensure redraw when application changes overtype mode so caret change visible even when not blinking.
++ Notify application with SC_UPDATE_SELECTION when overtype changed - previously
++ sent SC_UPDATE_CONTENT.
++ </li>
++ <li>
+ Fix drawing failure when in wrap mode for delete to start/end of line which
+ affects later lines but did not redraw them.
+ <a href="http://sourceforge.net/p/scintilla/bugs/1949/">Bug #1949</a>.
+diff -r 5a311da5df40 -r 79f86be9e988 src/Editor.cxx
+--- a/src/Editor.cxx Mon Jul 03 05:45:07 2017 -0700
++++ b/src/Editor.cxx Fri Jul 07 12:55:23 2017 +1000
+@@ -3733,9 +3733,8 @@
+ 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 @@
+ }
+
+ case SCI_SETOVERTYPE:
+- inOverstrike = wParam != 0;
++ if (inOverstrike != (wParam != 0)) {
++ inOverstrike = wParam != 0;
++ ContainerNeedsUpdate(SC_UPDATE_SELECTION);
++ ShowCaretAtCurrentPosition();
++ }
+ break;
+
+ case SCI_GETOVERTYPE: