From 43d7a23a8aebd999f7b9956ce4c3c7e474bb211a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 14 Aug 2014 15:58:27 +0530 Subject: [PATCH] Fix a regression that broke syntax highlighting in the compare books tool --- src/calibre/gui2/tweak_book/diff/highlight.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/tweak_book/diff/highlight.py b/src/calibre/gui2/tweak_book/diff/highlight.py index 52325b3e72..43abcaa5bb 100644 --- a/src/calibre/gui2/tweak_book/diff/highlight.py +++ b/src/calibre/gui2/tweak_book/diff/highlight.py @@ -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)