From 2d14512ddbfbf82441479dd81638bf66aa38b7d9 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 30 Jan 2024 14:28:09 -0600 Subject: [PATCH] fix(wezterm): correctly truncate tab titles --- dots/.config/wezterm/config/tabbar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.config/wezterm/config/tabbar.lua b/dots/.config/wezterm/config/tabbar.lua index da374d9e..1bd49740 100644 --- a/dots/.config/wezterm/config/tabbar.lua +++ b/dots/.config/wezterm/config/tabbar.lua @@ -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 .. " "