From 2e215d31141ae608c77a4edd520da1f2f37bc088 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 2 Aug 2026 21:59:26 +0530 Subject: [PATCH] also handle CR in tab title when drawing drag tab bar --- kitty/tabs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/tabs.py b/kitty/tabs.py index e1e17f901..e163e2b46 100644 --- a/kitty/tabs.py +++ b/kitty/tabs.py @@ -1771,8 +1771,8 @@ class TabManager: # {{{ td = tab.data_for_tab_bar(tab is self.active_tab) title = apply_title_template(self.tab_bar.draw_data, td, i+1) title = re.sub(r'\x1b\[.+?[a-zA-Z]', '', title).strip() # strip CSI codes ] + title = re.sub(r'[\n\r]', ' ', title) title = replace_c0_codes_except_nl_space_tab(title.encode()).decode() - title = re.sub(r'\n', ' ', title) opts = get_options() if td.is_active: fg = color_as_int(opts.active_tab_foreground)