From 75b4037519de4a7dd639689df8d6aaa27283e745 Mon Sep 17 00:00:00 2001 From: Mokaddem Date: Tue, 28 Feb 2017 11:11:17 +0100 Subject: [PATCH] Fixed bug - If we move the cursor from a line that has dissapear --- bin/ModulesInformationV2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/ModulesInformationV2.py b/bin/ModulesInformationV2.py index 25d0e74d..b43edeb7 100755 --- a/bin/ModulesInformationV2.py +++ b/bin/ModulesInformationV2.py @@ -117,6 +117,7 @@ class CListBox(ListBox): if len(self._options) > 0 and event.key_code == Screen.KEY_UP: # Move up one line in text - use value to trigger on_select. self._line = max(0, self._line - 1) + self._line = min(self._line, len(self._options)-1) #If we move a line cursor from a line that has dissapear self.value = self._options[self._line][1] elif len(self._options) > 0 and event.key_code == Screen.KEY_DOWN: