[meld/ui-next] filediff: Remove offset from our cursor struct



commit e4eb745155bac6a0b35c3572366eaf15bb6bf396
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Mar 24 08:58:02 2019 +1000

    filediff: Remove offset from our cursor struct
    
    It's unused since the line/column indicated moved to our MeldStatusBar
    class.

 meld/filediff.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 9c0467e2..bbb5ea78 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -93,7 +93,7 @@ PANE_LEFT, PANE_RIGHT = -1, +1
 
 class CursorDetails:
     __slots__ = (
-        "pane", "pos", "line", "offset", "chunk", "prev", "next",
+        "pane", "pos", "line", "chunk", "prev", "next",
         "prev_conflict", "next_conflict",
     )
 
@@ -567,7 +567,8 @@ class FileDiff(Gtk.VBox, MeldDoc):
             self.cursor.prev, self.cursor.next = prev, next_
             self.cursor.prev_conflict = prev_conflict
             self.cursor.next_conflict = next_conflict
-        self.cursor.line, self.cursor.offset = line, offset
+
+        self.cursor.line = line
 
     def on_current_diff_changed(self, *args):
         try:


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