Insert context boundary at end of file as well if last change does not touch end of file

This commit is contained in:
Kovid Goyal 2014-01-29 17:37:58 +05:30
parent 11cbf14e3b
commit 3b4d563cd7

View File

@ -679,6 +679,8 @@ class DiffSplit(QSplitter): # {{{
getattr(self, tag)(alo, ahi, blo, bhi) getattr(self, tag)(alo, ahi, blo, bhi)
QApplication.processEvents(QEventLoop.ExcludeUserInputEvents | QEventLoop.ExcludeSocketNotifiers) QApplication.processEvents(QEventLoop.ExcludeUserInputEvents | QEventLoop.ExcludeSocketNotifiers)
cl.insertBlock(), cr.insertBlock() cl.insertBlock(), cr.insertBlock()
if ahi < len(left_lines) - 1 or bhi < len(right_lines) - 1:
insert_boundary()
cl.endEditBlock(), cr.endEditBlock() cl.endEditBlock(), cr.endEditBlock()
del self.left_lines del self.left_lines