Fix zero division
This commit is contained in:
parent
5357876128
commit
914f7ddbd5
1 changed files with 1 additions and 1 deletions
|
|
@ -254,7 +254,7 @@ def update(self, data):
|
|||
s = self.screen
|
||||
s.cursor.x = 0
|
||||
s.erase_in_line(2, False)
|
||||
max_title_length = (self.screen_geometry.xnum // len(self.current_data)) - 1
|
||||
max_title_length = (self.screen_geometry.xnum // max(1, len(self.current_data)) - 1)
|
||||
cr = []
|
||||
|
||||
for t in self.current_data:
|
||||
|
|
|
|||
Loading…
Reference in a new issue