diff --git a/src/widgets/navbar.zig b/src/widgets/navbar.zig index 51ee684..60bfe80 100644 --- a/src/widgets/navbar.zig +++ b/src/widgets/navbar.zig @@ -64,7 +64,7 @@ pub const Navbar = struct { sub.putString(item.label); sub.putString(" "); - x += @as(u16, @intCast(item.label.len)) + (if (item.icon != null) 4 else 2); + x += @as(u16, @intCast(item.label.len)) + @as(u16, (if (item.icon != null) 4 else 2)); } }