mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
Forgot to change check for space for next tab to use its max tab length rather than the current tabs max tab length, since they can now be different
This commit is contained in:
parent
f0f0c8f4fe
commit
1402c5bbfa
1 changed files with 2 additions and 1 deletions
|
|
@ -589,7 +589,8 @@ class TabBar:
|
|||
end = self.draw_func(self.draw_data, s, t, before, max_tab_length, i + 1, t is last_tab, ed)
|
||||
s.cursor.bg = s.cursor.fg = 0
|
||||
cell_ranges.append((before, end))
|
||||
if not ed.for_layout and s.cursor.x > s.columns - max_tab_length and t is not last_tab:
|
||||
if not ed.for_layout and t is not last_tab and s.cursor.x > s.columns - max_tab_lengths[i+1]:
|
||||
# Stop if there is no space for next tab
|
||||
s.cursor.x = s.columns - 2
|
||||
s.cursor.bg = as_rgb(color_as_int(self.draw_data.default_bg))
|
||||
s.cursor.fg = as_rgb(0xff0000)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue