mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 02:02:14 +02:00
Fix segfault when opening more tabs than would fit with even one character titles on the tab bar. Fixes #706
This commit is contained in:
@@ -153,7 +153,7 @@ class TabBar:
|
|||||||
s = self.screen
|
s = self.screen
|
||||||
s.cursor.x = 0
|
s.cursor.x = 0
|
||||||
s.erase_in_line(2, False)
|
s.erase_in_line(2, False)
|
||||||
max_title_length = (self.screen_geometry.xnum // max(1, len(data))) - 1
|
max_title_length = max(1, (self.screen_geometry.xnum // max(1, len(data))) - 1)
|
||||||
cr = []
|
cr = []
|
||||||
last_tab = data[-1] if data else None
|
last_tab = data[-1] if data else None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user