mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
1a095646d3
commit
11cbf14e3b
@ -665,14 +665,17 @@ 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)
|
||||||
else:
|
else:
|
||||||
|
def insert_boundary():
|
||||||
|
self.changes.append(Change(
|
||||||
|
ltop=cl.block().blockNumber()-1, lbot=cl.block().blockNumber(),
|
||||||
|
rtop=cr.block().blockNumber()-1, rbot=cr.block().blockNumber(), kind='boundary'))
|
||||||
|
self.left.line_number_map[self.changes[-1].ltop] = '-'
|
||||||
|
self.right.line_number_map[self.changes[-1].rtop] = '-'
|
||||||
|
|
||||||
for i, group in enumerate(cruncher.get_grouped_opcodes(context)):
|
for i, group in enumerate(cruncher.get_grouped_opcodes(context)):
|
||||||
for j, (tag, alo, ahi, blo, bhi) in enumerate(group):
|
for j, (tag, alo, ahi, blo, bhi) in enumerate(group):
|
||||||
if j == 0 and (i > 0 or min(alo, blo) > 0):
|
if j == 0 and (i > 0 or min(alo, blo) > 0):
|
||||||
self.changes.append(Change(
|
insert_boundary()
|
||||||
ltop=cl.block().blockNumber()-1, lbot=cl.block().blockNumber(),
|
|
||||||
rtop=cr.block().blockNumber()-1, rbot=cr.block().blockNumber(), kind='boundary'))
|
|
||||||
self.left.line_number_map[self.changes[-1].ltop] = '-'
|
|
||||||
self.right.line_number_map[self.changes[-1].rtop] = '-'
|
|
||||||
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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user