Skip to content

Commit

Permalink
fix(wezterm): Convert padding amount to int
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Jul 31, 2024
1 parent 9ec332d commit 359f6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home-manager/modules/wezterm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ in {
for _, tab in ipairs(mux_win:tabs()) do
tabs_total_width = tabs_total_width + #format_tab_title(tab, 0, tab_max_width, true) + 6
end
window:set_left_status(string.rep(' ', (total_width / 2) - (tabs_total_width / 2)))
window:set_left_status(string.rep(' ', math.floor((total_width / 2) - (tabs_total_width / 2))))
end)
wezterm.on('format-tab-title', function(tab, tabs)
local i = tab.tab_index
Expand Down

0 comments on commit 359f6aa

Please sign in to comment.