From ce6dd882552799db5ab5980ffac2e4bbd0d6cff2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 24 May 2016 11:48:52 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tweak_book/editor/text.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/tweak_book/editor/text.py b/src/calibre/gui2/tweak_book/editor/text.py index c2b6cb0551..3424bbef2f 100644 --- a/src/calibre/gui2/tweak_book/editor/text.py +++ b/src/calibre/gui2/tweak_book/editor/text.py @@ -391,6 +391,7 @@ class TextEdit(PlainTextEdit): c.setPosition(c.anchor() + idx) c.setPosition(c.position() + string_length(word), c.KeepAnchor) if self.smarts.verify_for_spellcheck(c, self.highlighter): + self.highlighter.join() # Ensure highlighting is finished locale = self.spellcheck_locale_for_cursor(c) if not lang or not locale or (locale and lang == locale.langcode): self.setTextCursor(c)