summaryrefslogtreecommitdiff
path: root/src/colors.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/colors.zig')
-rw-r--r--src/colors.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/colors.zig b/src/colors.zig
index b028888f..de20cf9b 100644
--- a/src/colors.zig
+++ b/src/colors.zig
@@ -998,8 +998,8 @@ test "line numbers stay quiet without a current-line tag background" {
custom.lineno_active = .{ 95, 95, 95 };
p.custom_theme = custom;
p.sync();
- const x = p.rects[0].x + config.GUTTER;
- const y = p.rects[0].y + BOX_H;
+ const x = p.view().rects[0].x + config.GUTTER;
+ const y = p.view().rects[0].y + BOX_H;
const surface = try p.render(p.scratch.allocator());
try std.testing.expectEqual(Color{ .rgb = .{ 95, 95, 95 } }, surface.at(x, y).style.fg);
try std.testing.expectEqual(Color{ .rgb = .{ 70, 70, 70 } }, surface.at(x, y + 1).style.fg);