mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Insert context boundary at end of file as well if last change does not touch end of file
This commit is contained in:
parent
11cbf14e3b
commit
3b4d563cd7
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user