From e2c0325a7aa833a2224d932070d506c9982223a5 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Thu, 9 Oct 2025 15:23:37 +0200 Subject: [PATCH] fix: incorrect tab width when file type icons are turned on --- src/tui/status/tabs.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui/status/tabs.zig b/src/tui/status/tabs.zig index b0ec390..196bc5a 100644 --- a/src/tui/status/tabs.zig +++ b/src/tui/status/tabs.zig @@ -492,7 +492,7 @@ const Tab = struct { } fn padding_len(plane: Plane, tab_style: Style, active: bool, dirty: bool) usize { - const len_file_icon: usize = if (tab_style.file_type_icon) 2 else 0; + const len_file_icon: usize = if (tab_style.file_type_icon) 3 else 0; const len_dirty_indicator = if (dirty) plane.egc_chunk_width(tab_style.dirty_indicator, 0, 1) else 0; return len_file_icon + len_dirty_indicator + if (active) plane.egc_chunk_width(tab_style.active_left, 0, 1) +