mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -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 False
|
||||
|
||||
editor.highlighter.join()
|
||||
c = editor.textCursor()
|
||||
block, offset = c.block(), c.positionInBlock()
|
||||
if check_if_in_tag(block, offset) or check_if_in_tag(block.next()):
|
||||
|
Loading…
x
Reference in New Issue
Block a user