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:
Kovid Goyal 2019-06-03 20:49:34 +05:30
parent cff789f12c
commit 13eb6795e6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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()):