diff options
Diffstat (limited to 'core/Core.zig')
| -rw-r--r-- | core/Core.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Core.zig b/core/Core.zig index 4c8aa2eb..1894247d 100644 --- a/core/Core.zig +++ b/core/Core.zig @@ -3871,11 +3871,11 @@ test "raw terminal cursor follows its active row only while that row is visible" try std.testing.expectEqual(rect.x + config.GUTTER + 3, live.x); try std.testing.expectEqual(body_y + 2, live.y); - pane.scrollBy(-1); + pane.scrollBy(p.settings.tab, -1); const scrolled = (try p.render(frame.allocator())).cursor orelse return error.MissingCursor; try std.testing.expectEqual(live.x, scrolled.x); try std.testing.expectEqual(live.y + 1, scrolled.y); - pane.scrollBy(-@as(i32, pane.rows)); + pane.scrollBy(p.settings.tab, -@as(i32, pane.rows)); try std.testing.expect((try p.render(frame.allocator())).cursor == null); pane.followOutput(); const returned = (try p.render(frame.allocator())).cursor orelse return error.MissingCursor; @@ -3929,7 +3929,7 @@ test "tty output follows only from the bottom" { try std.testing.expect(bottom > 0); // Scrolled back, the reader stays put however much the shell prints. - sp.scrollBy(-10); + sp.scrollBy(p.settings.tab, -10); p.sync(); const parked = sp.termTop(); try std.testing.expect(parked < bottom); |
