From 57fdfe76bb46a98a823996d32483d128f3b6bb5c Mon Sep 17 00:00:00 2001 From: Robert Ian Hawdon Date: Wed, 9 Jul 2025 11:33:12 +0100 Subject: [PATCH 1/2] Changed behaviour of bold-color --- src/terminal/style.zig | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/terminal/style.zig b/src/terminal/style.zig index 78afcdf39..deb2b8ec5 100644 --- a/src/terminal/style.zig +++ b/src/terminal/style.zig @@ -154,15 +154,12 @@ pub const Style = struct { .palette => |idx| palette: { if (self.flags.bold) { - if (opts.bold) |bold| switch (bold) { - .color => |v| break :palette v.toTerminalRGB(), - .bright => { - const bright_offset = @intFromEnum(color.Name.bright_black); - if (idx < bright_offset) { - break :palette opts.palette[idx + bright_offset]; - } - }, - }; + if (opts.bold) |_| { + const bright_offset = @intFromEnum(color.Name.bright_black); + if (idx < bright_offset) { + break :palette opts.palette[idx + bright_offset]; + } + } } break :palette opts.palette[idx]; From 94cca0cc17f385b5ca52450ecf9f688df501167a Mon Sep 17 00:00:00 2001 From: Robert Ian Hawdon Date: Wed, 9 Jul 2025 11:35:44 +0100 Subject: [PATCH 2/2] Updated comment --- src/config/Config.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/Config.zig b/src/config/Config.zig index 8ca8d3154..f0514a18e 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -2825,8 +2825,8 @@ else /// This can be set to a specific color, using the same format as /// `background` or `foreground` (e.g. `#RRGGBB` but other formats /// are also supported; see the aforementioned documentation). If a -/// specific color is set, this color will always be used for all -/// bold text regardless of the terminal's color scheme. +/// specific color is set, this color will always be used for the default +/// bold text color. It will set the rest of the bold colors to `bright`. /// /// This can also be set to `bright`, which uses the bright color palette /// for bold text. For example, if the text is red, then the bold will