fix(wezterm): correctly calculate truncation check for tabbar
This commit is contained in:
parent
a3b3ca8042
commit
10e869744d
@ -50,7 +50,7 @@ wezterm.on("format-tab-title", function(tab, tabs, panes, config, hover, max_wid
|
|||||||
local edge_fg = color_names.kanagawa.oniViolet
|
local edge_fg = color_names.kanagawa.oniViolet
|
||||||
|
|
||||||
local title = tab_title(tab)
|
local title = tab_title(tab)
|
||||||
if #title > max_width then
|
if #title > max_width - 1 then
|
||||||
title = " " .. wezterm.truncate_right(title, max_width - 6) .. "..."
|
title = " " .. wezterm.truncate_right(title, max_width - 6) .. "..."
|
||||||
else
|
else
|
||||||
title = " " .. title .. " "
|
title = " " .. title .. " "
|
||||||
|
Loading…
Reference in New Issue
Block a user