mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
a33960c91c
commit
ce6dd88255
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user