Fix a regression that broke syntax highlighting in the compare books tool

This commit is contained in:
Kovid Goyal 2014-08-14 15:58:27 +05:30
parent e9daa12caf
commit 43d7a23a8a

View File

@ -31,6 +31,7 @@ class QtHighlighter(QTextDocument):
''' Copy specified lines from the syntax highlighted buffer into the
destination cursor, preserving all formatting created by the syntax
highlighter. '''
self.highlighter.join()
num = hi - lo
if num > 0:
block = self.findBlockByNumber(lo)