fix(wezterm): add fallback tab title if tab title is empty

This commit is contained in:
Price Hiller 2023-06-07 05:04:17 -05:00
parent f49b4131cf
commit 84e4c4ba17
No known key found for this signature in database

View File

@ -157,6 +157,10 @@ wezterm.on("format-tab-title", function(tab, tabs, panes, config, hover, max_wid
local title = " " .. wezterm.truncate_right(tab_title(tab), max_width - 2) .. " "
if title:match("^%s+$") then
title = " N/A "
end
if tab.is_active then
bg = color_names.kanagawa.sumiInk0
fg = color_names.kanagawa.oniViolet