summaryrefslogtreecommitdiff
path: root/test/mode.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/mode.zig')
-rw-r--r--test/mode.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mode.zig b/test/mode.zig
index a03d9dc1..cb93b73e 100644
--- a/test/mode.zig
+++ b/test/mode.zig
@@ -13,7 +13,7 @@ fn clickModeTag(p: *Pardes) !void {
const pane = p.panes[0].?;
const text = try pardes.tagline.tagText(p, p.scratch.allocator(), pane);
const col = std.mem.indexOf(u8, text, "Mode") orelse return error.MissingModeTag;
- const rect = p.rects[0];
+ const rect = p.view().rects[0];
const row = rect.y;
for ([_]pardes.Mouse.Kind{ .press, .release }) |kind|
p.update(.{ .mouse = .{ .button = .left, .kind = kind, .col = rect.x + pardes.TAG_TEXT_INSET + @as(u16, @intCast(col)), .row = row } });