mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ensure highlighting is done when going to sourceline
This commit is contained in:
parent
804e3fbf1c
commit
3f1cc2725a
@ -527,6 +527,7 @@ class Smarts(NullSmarts):
|
|||||||
block = editor.document().findBlockByNumber(sourceline - 1) # blockNumber() is zero based
|
block = editor.document().findBlockByNumber(sourceline - 1) # blockNumber() is zero based
|
||||||
if not block.isValid():
|
if not block.isValid():
|
||||||
return found_tag
|
return found_tag
|
||||||
|
editor.highlighter.join()
|
||||||
c = editor.textCursor()
|
c = editor.textCursor()
|
||||||
ud = block.userData()
|
ud = block.userData()
|
||||||
all_tags = [] if ud is None else [t for t in ud.tags if (t.is_start and not t.closing)]
|
all_tags = [] if ud is None else [t for t in ud.tags if (t.is_start and not t.closing)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user