diff --git a/modules/wezterm/config/helpers.lua b/modules/wezterm/config/helpers.lua index 82d6d76..fd504ca 100644 --- a/modules/wezterm/config/helpers.lua +++ b/modules/wezterm/config/helpers.lua @@ -53,9 +53,11 @@ function M.move_pane(key, direction) end function M.get_zoom_state(active_pane) - local zoom_state = active_pane:is_zoomed() and "[Z] " or "" + if active_pane.is_zoomed then + return "[Z]" + end - return zoom_state + return "" end return M diff --git a/modules/wezterm/config/tab_bar.lua b/modules/wezterm/config/tab_bar.lua index cc62ea6..fa4411e 100644 --- a/modules/wezterm/config/tab_bar.lua +++ b/modules/wezterm/config/tab_bar.lua @@ -10,7 +10,7 @@ local function get_elements(for_window) return { { Background = { Color = theme.colors().tab_bar.background } }, { Foreground = { Color = theme.colors().tab_bar.inactive_tab.fg_color } }, - { Text = helpers.get_zoom_state(active_pane) }, + { Text = helpers.get_zoom_state(active_pane) .. " " }, { Text = "h:" .. wezterm.hostname() .. " " }, { Text = "upgrades:" .. helpers.get_outdated_packages() .. " " }, { Text = "bat:" .. helpers.get_primary_battery_state() .. " " },