aboutsummaryrefslogtreecommitdiff
path: root/src/scintilla_backports/6119_71bee2f06619.patch
diff options
context:
space:
mode:
Diffstat (limited to 'src/scintilla_backports/6119_71bee2f06619.patch')
-rw-r--r--src/scintilla_backports/6119_71bee2f06619.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/scintilla_backports/6119_71bee2f06619.patch b/src/scintilla_backports/6119_71bee2f06619.patch
new file mode 100644
index 00000000..693749c7
--- /dev/null
+++ b/src/scintilla_backports/6119_71bee2f06619.patch
@@ -0,0 +1,24 @@
+# HG changeset patch
+# User Neil <nyamatongwe@gmail.com>
+# Date 1488922409 -39600
+# Node ID 71bee2f066197ae012f92de55433700df2bdcd09
+# Parent 559dea66606f42c080f04db706a1ebe6bef83713
+Bug [#1910]. Fixed more duplicate code.
+
+diff -r 559dea66606f -r 71bee2f06619 gtk/ScintillaGTKAccessible.cxx
+--- a/gtk/ScintillaGTKAccessible.cxx Tue Mar 07 22:27:40 2017 +1100
++++ b/gtk/ScintillaGTKAccessible.cxx Wed Mar 08 08:33:29 2017 +1100
+@@ -880,13 +880,6 @@
+ character_offsets.resize(line + 1);
+ }
+ }
+- if (nt->modificationType & (SC_MOD_INSERTTEXT | SC_MOD_DELETETEXT)) {
+- // invalidate character offset cache if applicable
+- const Position line = sci->pdoc->LineFromPosition(nt->position);
+- if (character_offsets.size() > static_cast<size_t>(line + 1)) {
+- character_offsets.resize(line + 1);
+- }
+- }
+ if (nt->modificationType & SC_MOD_INSERTTEXT) {
+ int startChar = CharacterOffsetFromByteOffset(nt->position);
+ int lengthChar = sci->pdoc->CountCharacters(nt->position, nt->position + nt->length);