diff --git a/src/config/Config.zig b/src/config/Config.zig index a9b700582..2d540e895 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -1030,7 +1030,7 @@ keybind: Keybinds = .{}, /// notifications using certain escape sequences such as OSC 9 or OSC 777. @"desktop-notifications": bool = true, -/// If `true`, the bold text will use its bright palette +/// If `true`, the bold text will use the bright color palette. @"bold-is-bright": bool = false, /// This will be used to set the `TERM` environment variable. diff --git a/src/terminal/style.zig b/src/terminal/style.zig index 09657cbc0..7e3356bc8 100644 --- a/src/terminal/style.zig +++ b/src/terminal/style.zig @@ -92,10 +92,10 @@ pub const Style = struct { .palette => |idx| palette: { if (bold_is_bright and self.flags.bold) { const bright_offset = @intFromEnum(color.Name.bright_black); - if (idx < bright_offset) break :palette palette[idx + bright_offset]; } + break :palette palette[idx]; }, .rgb => |rgb| rgb,