diff options
Diffstat (limited to 'src/draw.zig')
| -rw-r--r-- | src/draw.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/draw.zig b/src/draw.zig index 96a12145..e28c9f9d 100644 --- a/src/draw.zig +++ b/src/draw.zig @@ -486,10 +486,10 @@ fn resolved(color: Color, default: ?[3]u8, palette: ?[16][3]u8) ?[3]u8 { .rgb => |rgb| rgb, .default => default, // A theme's own sixteen, as the painters give them (Terminal.palColor). - .index => |index| if (palette != null and index < 16) palette.?[index] else if (comptime pardes.terminal_panes) blk: { + .index => |index| if (palette != null and index < 16) palette.?[index] else blk: { const rgb = @import("ghostty-vt").color.default[index]; break :blk .{ rgb.r, rgb.g, rgb.b }; - } else null, + }, }; } @@ -2042,7 +2042,7 @@ test "the focused cursor glides a jump, eases a step, the thin caret too, and is } test "a terminal's cursor lands with scrolling output, never gliding against it" { - if (!builtins.frontend.lift or !pardes.terminal_panes) return error.SkipZigTest; + if (!builtins.frontend.lift) return error.SkipZigTest; const p = try Pardes.init(std.testing.allocator, .{ .cols = 80, .rows = 12 }); defer p.deinit(); while (p.nextEffect()) |_| {} |
