summaryrefslogtreecommitdiff
path: root/test/perf.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/perf.zig')
-rw-r--r--test/perf.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/perf.zig b/test/perf.zig
index e9ee43d7..30e15dcc 100644
--- a/test/perf.zig
+++ b/test/perf.zig
@@ -1138,7 +1138,7 @@ fn measureTerminalSession(io: std.Io, mib: usize, reps: usize, json: bool) !void
const begin = nowNs();
core.update(.{ .output = .{ .pane = .at(0), .bytes = update } });
pump(core);
- const cursor_row = @as(i32, @intCast(pardes.Term.grid(pane.terminal).offset)) + @as(i32, pardes.Term.grid(pane.terminal).cursor_y);
+ const cursor_row = @as(i32, @intCast(pane.termTop())) + @as(i32, pardes.Term.grid(pane.terminal).cursor_y);
pane.ovl.?.row = if (phase == 0) 0 else cursor_row - 1;
pane.body.cur_row = pane.ovl.?.row;
pane.body.cur_col = 0;