From 6dc1dcda02bdd6891b84bcd567f631b7fe2c539a Mon Sep 17 00:00:00 2001 From: Romain Failliot Date: Wed, 17 Aug 2016 21:44:25 -0400 Subject: [PATCH] Hack to fix the resize bug. Disable the column # display, will need to refactor the entire ScrolledWindow class, which is planned anyway. --- src/usr/bin/diffuse | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/usr/bin/diffuse b/src/usr/bin/diffuse index c4240b7..9add28e 100755 --- a/src/usr/bin/diffuse +++ b/src/usr/bin/diffuse @@ -6965,11 +6965,13 @@ class Diffuse(Gtk.Window): # set the cursor label def updateCursor(self, viewer, f): if viewer.mode == CHAR_MODE and viewer.current_pane == f: - j = viewer.current_char - if j > 0: - text = viewer.getLineText(viewer.current_pane, viewer.current_line)[:j] - j = viewer.stringWidth(text) - s = _('Column %d') % (j, ) + ## TODO: Find a fix for the column bug (resizing issue when editing a line) + #j = viewer.current_char + #if j > 0: + # text = viewer.getLineText(viewer.current_pane, viewer.current_line)[:j] + # j = viewer.stringWidth(text) + #s = _('Column %d') % (j, ) + s = '' else: s = '' self.cursor.set_text(s)