From 10e869744dd4cd29fa219a9ad189b6941c1aca4d Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 7 Dec 2023 04:19:37 -0600 Subject: [PATCH] fix(wezterm): correctly calculate truncation check for tabbar --- 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 36982e7c..ff3abc3a 100644 --- a/dots/.config/wezterm/config/tabbar.lua +++ b/dots/.config/wezterm/config/tabbar.lua @@ -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 title = tab_title(tab) - if #title > max_width then + if #title > max_width - 1 then title = " " .. wezterm.truncate_right(title, max_width - 6) .. "..." else title = " " .. title .. " "