Package: sushi / 1.4.0+git20160822+dfsg-4.1

nigiri-01-fix-urwid-indexerror.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Description: fix following IndexError error:
#  IndexError: No widget at position 1
# Last-Update: 2017-03-18
Index: sushi-1.4.0+git20160822+dfsg/nigiri/extends/ListBox.py
===================================================================
--- sushi-1.4.0+git20160822+dfsg.orig/nigiri/extends/ListBox.py
+++ sushi-1.4.0+git20160822+dfsg/nigiri/extends/ListBox.py
@@ -71,7 +71,7 @@ class ExtendedListBox(urwid.ListBox):
 
 		if self.auto_scroll:
 			# at bottom -> scroll down
-			self.set_focus(len(self.body))
+			self.set_focus(len(self.body)-1)