Thanks for that! I've pushed this to master now. cheers, Kai
On 12 April 2017 at 12:02, Simon Marchi <[email protected]> wrote: > 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 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meld/filediff.py b/meld/filediff.py > index 12a5678c..fbafaec6 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] > -- > 2.12.2 > > _______________________________________________ > meld-list mailing list > [email protected] > https://mail.gnome.org/mailman/listinfo/meld-list _______________________________________________ meld-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/meld-list
