Hack to fix the resize bug.

Disable the column # display, will need to refactor the entire
ScrolledWindow class, which is planned anyway.
This commit is contained in:
Romain Failliot 2016-08-17 21:44:25 -04:00
parent 28a008ac0b
commit 6dc1dcda02
1 changed files with 7 additions and 5 deletions

View File

@ -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)