Commits

anatoly techtonik committed ec5b7e5

FilePanel: Do not crash on down button if panel is empty.

Comments (0)

Files changed (1)

     def down(self):
         """Move cursor down"""
         yspace = self.height-2
+        if not filepanel.items:
+            return
         if self.item_idx == len(filepanel.items)-1:
             # stop if last element of list is reached
             return