diff options
author | Neil <nyamatongwe@gmail.com> | 2017-03-08 08:33:29 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-03-08 08:33:29 +1100 |
commit | 5e2f3017642a46893214d69d741101c2629f085c (patch) | |
tree | c2e5166d0cdd98145e925f70757470f53a96d2aa | |
parent | d07263d4a38dc7e2f2592dd36ff2a5edafd47f3c (diff) | |
download | scintilla-mirror-5e2f3017642a46893214d69d741101c2629f085c.tar.gz |
Bug [#1910]. Fixed more duplicate code.
-rw-r--r-- | gtk/ScintillaGTKAccessible.cxx | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gtk/ScintillaGTKAccessible.cxx b/gtk/ScintillaGTKAccessible.cxx index 001f2703f..5cabb5aa3 100644 --- a/gtk/ScintillaGTKAccessible.cxx +++ b/gtk/ScintillaGTKAccessible.cxx @@ -880,13 +880,6 @@ void ScintillaGTKAccessible::Notify(GtkWidget *, gint, SCNotification *nt) { 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); |