mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 05:35:22 +01: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
1 changed files with 2 additions and 0 deletions
|
|
@ -679,6 +679,8 @@ def insert_boundary():
|
|||
getattr(self, tag)(alo, ahi, blo, bhi)
|
||||
QApplication.processEvents(QEventLoop.ExcludeUserInputEvents | QEventLoop.ExcludeSocketNotifiers)
|
||||
cl.insertBlock(), cr.insertBlock()
|
||||
if ahi < len(left_lines) - 1 or bhi < len(right_lines) - 1:
|
||||
insert_boundary()
|
||||
|
||||
cl.endEditBlock(), cr.endEditBlock()
|
||||
del self.left_lines
|
||||
|
|
|
|||
Loading…
Reference in a new issue