[meld] filediff: Display visual column offset in status bar
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] filediff: Display visual column offset in status bar
- Date: Sun, 16 Apr 2017 22:14:15 +0000 (UTC)
commit 7fcacd7ce613153a2f8e4ec9d261b9b15c8d8337
Author: Simon Marchi <simon marchi polymtl ca>
Date: Tue Apr 11 22:02:24 2017 -0400
filediff: Display visual column offset in status bar
This patch changes the filediff so that the offset shown in the status
bar is the visual column offset, rather than the byte offset in the
current line.
meld/filediff.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 12a5678..fbafaec 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -320,7 +320,7 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
self.cursor.pane, self.cursor.pos = pane, pos
cursor_it = buf.get_iter_at_offset(pos)
- offset = cursor_it.get_line_offset()
+ offset = self.textview[pane].get_visual_column(cursor_it)
line = cursor_it.get_line()
insert_overwrite = self._insert_overwrite_text[self.textview_overwrite]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]