mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-22 21:23:44 +00:00
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 @@ class TabBar:
|
|||
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…
Add table
Add a link
Reference in a new issue