fix(wezterm): correctly truncate tab titles

This commit is contained in:
Price Hiller 2024-01-30 14:28:09 -06:00
parent 82dd7c2aa9
commit 2d14512ddb
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -47,7 +47,7 @@ wezterm.on("format-tab-title", function(tab, tabs, panes, config, hover, max_wid
local edge_fg = color_names.kanagawa.oniViolet
local title = tab_title(tab)
if #title > max_width - 1 then
if #title > max_width - 2 then
title = " " .. wezterm.truncate_right(title, max_width - 6) .. ""
else
title = " " .. title .. " "