mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 04:32:05 +00:00
also handle CR in tab title when drawing drag tab bar
This commit is contained in:
parent
75bd9d7979
commit
2e215d3114
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue