mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Edit book: When auto-closing tags on typing </ fix occasionally incorrect tag being closed in large files because syntax highlighting has not competed
This commit is contained in:
parent
cff789f12c
commit
13eb6795e6
@ -692,6 +692,7 @@ class Smarts(NullSmarts):
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
editor.highlighter.join()
|
||||||
c = editor.textCursor()
|
c = editor.textCursor()
|
||||||
block, offset = c.block(), c.positionInBlock()
|
block, offset = c.block(), c.positionInBlock()
|
||||||
if check_if_in_tag(block, offset) or check_if_in_tag(block.next()):
|
if check_if_in_tag(block, offset) or check_if_in_tag(block.next()):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user