Browse Source

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
James E. Blair 2 years ago
parent
commit
c466fa6633
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      gertty/view/change.py

+ 1
- 1
gertty/view/change.py View File

@@ -584,7 +584,7 @@ class ChangeView(urwid.WidgetWrap):
584 584
 
585 585
         self.checkGitRepo()
586 586
         self.refresh()
587
-        self.listbox.set_focus(3)
587
+        self.listbox.set_focus(0)
588 588
         self.grid.set_focus(1)
589 589
 
590 590
     def checkGitRepo(self):

Loading…
Cancel
Save