very minor nitpicks

This commit is contained in:
Mitchell Hashimoto
2024-05-25 14:19:23 -07:00
parent 94a7166028
commit 41afb62903
2 changed files with 2 additions and 2 deletions

View File

@ -1030,7 +1030,7 @@ keybind: Keybinds = .{},
/// notifications using certain escape sequences such as OSC 9 or OSC 777. /// notifications using certain escape sequences such as OSC 9 or OSC 777.
@"desktop-notifications": bool = true, @"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, @"bold-is-bright": bool = false,
/// This will be used to set the `TERM` environment variable. /// This will be used to set the `TERM` environment variable.

View File

@ -92,10 +92,10 @@ pub const Style = struct {
.palette => |idx| palette: { .palette => |idx| palette: {
if (bold_is_bright and self.flags.bold) { if (bold_is_bright and self.flags.bold) {
const bright_offset = @intFromEnum(color.Name.bright_black); const bright_offset = @intFromEnum(color.Name.bright_black);
if (idx < bright_offset) if (idx < bright_offset)
break :palette palette[idx + bright_offset]; break :palette palette[idx + bright_offset];
} }
break :palette palette[idx]; break :palette palette[idx];
}, },
.rgb => |rgb| rgb, .rgb => |rgb| rgb,