[meld] filediff: Fix cursor-moving actions
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] filediff: Fix cursor-moving actions
- Date: Fri, 29 Jun 2018 02:16:47 +0000 (UTC)
commit 40c0ccb74f21a9b3001b87d648e4d53ceeb9c9ce
Author: Kai Willadsen <kai willadsen gmail com>
Date: Fri Jun 29 12:15:41 2018 +1000
filediff: Fix cursor-moving actions
This was just a broken refactor when we added go-to-line support.
meld/filediff.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index dae8223b..97e0a8c9 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -748,7 +748,7 @@ class FileDiff(MeldDoc, Component):
def move_cursor_pane(self, pane, new_pane):
chunk, line = self.cursor.chunk, self.cursor.line
new_line = self._corresponding_chunk_line(chunk, line, pane, new_pane)
- self.move_cursor(pane, new_line)
+ self.move_cursor(new_pane, new_line)
def action_prev_pane(self, *args):
pane = self._get_focused_pane()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]