From 11de18e7371bf9a064c5268bd99ec3d639060702 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 13 Jul 2017 19:24:26 +0530 Subject: [PATCH] Fix #91 --- kitty/tabs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kitty/tabs.py b/kitty/tabs.py index 8bb2c5425..768a2950f 100644 --- a/kitty/tabs.py +++ b/kitty/tabs.py @@ -328,9 +328,10 @@ class TabManager: s.cursor.bold = s.cursor.italic = False s.cursor.fg = s.cursor.bg = 0 s.draw('┇') - if s.cursor.x > s.columns - max_title_length: + if s.cursor.x > s.columns - max_title_length and t is not self.tabs[-1]: s.draw('…') break + s.erase_characters(s.columns - 1) # Ensure no long titles bleed after the last tab s.update_cell_data( sprites.backend, self.color_profile, addressof(self.sprite_map), self.default_fg, self.default_bg, True) sprites.render_dirty_cells()