[meld] filediff: Remove obsolete cursor handling for identical files case
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] filediff: Remove obsolete cursor handling for identical files case
- Date: Sat, 29 Apr 2017 22:06:34 +0000 (UTC)
commit f8d38146976af6402560ccf39014ff5eacfa6bda
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Apr 30 07:50:12 2017 +1000
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.
meld/filediff.py | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index cb5760e..0dba4da 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -1120,9 +1120,6 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
self.scheduler.add_task(
lambda: self.go_to_chunk(self.cursor.next, centered=True),
True)
- else:
- buf = self.textbuffer[1 if self.num_panes > 1 else 0]
- self.on_cursor_position_changed(buf, None, True)
self.queue_draw()
self._connect_buffer_handlers()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]