Fix crash on long review messages
Hitting 'page down' on a change with a long review message might produce an error like: urwid.listbox.ListBoxError: Invalid offset_inset: -7, only 2 rows in target! Setting the initial focus of the listbox to the grid rather than the divider seems to help with that. It also seems to make more sense. Change-Id: Ie8038583250a994851f2570d889112153d2906a3
This commit is contained in:
parent
14758b1665
commit
c466fa6633
@ -584,7 +584,7 @@ class ChangeView(urwid.WidgetWrap):
|
||||
|
||||
self.checkGitRepo()
|
||||
self.refresh()
|
||||
self.listbox.set_focus(3)
|
||||
self.listbox.set_focus(0)
|
||||
self.grid.set_focus(1)
|
||||
|
||||
def checkGitRepo(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user