aboutsummaryrefslogtreecommitdiff
path: root/src/scintilla_backports/6119_71bee2f06619.patch
blob: 693749c7c149b70852d1260cb455ba679613ca09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);