Skip to content

Commit f8d3814

Browse files
committed
filediff: Remove obsolete cursor handling for identical files case
This handling was added for the case when files are identical and so there's no chunk to go to. Previously, we had cursor signals disconnected at this point, so this clause existed just so that we would have a correct line/column number in the status bar. With more recent changes we now get our cursor handling triggered anyway, so this can go.
1 parent 5077008 commit f8d3814

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

meld/filediff.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,9 +1120,6 @@ def _diff_files(self, refresh=False):
11201120
self.scheduler.add_task(
11211121
lambda: self.go_to_chunk(self.cursor.next, centered=True),
11221122
True)
1123-
else:
1124-
buf = self.textbuffer[1 if self.num_panes > 1 else 0]
1125-
self.on_cursor_position_changed(buf, None, True)
11261123

11271124
self.queue_draw()
11281125
self._connect_buffer_handlers()

0 commit comments

Comments
 (0)