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 # set the cursor label
def updateCursor(self, viewer, f): def updateCursor(self, viewer, f):
if viewer.mode == CHAR_MODE and viewer.current_pane == f: if viewer.mode == CHAR_MODE and viewer.current_pane == f:
j = viewer.current_char ## TODO: Find a fix for the column bug (resizing issue when editing a line)
if j > 0: #j = viewer.current_char
text = viewer.getLineText(viewer.current_pane, viewer.current_line)[:j] #if j > 0:
j = viewer.stringWidth(text) # text = viewer.getLineText(viewer.current_pane, viewer.current_line)[:j]
s = _('Column %d') % (j, ) # j = viewer.stringWidth(text)
#s = _('Column %d') % (j, )
s = ''
else: else:
s = '' s = ''
self.cursor.set_text(s) self.cursor.set_text(s)