[meld/ui-next] filediff: Don't move the cursor on initial go-to-line focus



commit a1d09e5f21fef0f7a0c99721495700a5dadbbccb
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Mar 24 09:36:44 2019 +1000

    filediff: Don't move the cursor on initial go-to-line focus

 meld/filediff.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 18a4f78d..06ea0094 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -417,6 +417,8 @@ class FileDiff(Gtk.VBox, MeldDoc):
                 self.set_file(pane, buffer.data.gfile, encoding)
 
             def go_to_line(widget, line, pane):
+                if self.cursor.pane == pane and self.cursor.line == line:
+                    return
                 self.move_cursor(pane, line, focus=False)
 
             pane = self.statusbar.index(statusbar)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]