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:
James E. Blair 2016-12-22 17:06:12 -08:00
parent 14758b1665
commit c466fa6633
1 changed files with 1 additions and 1 deletions

View File

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