summaryrefslogtreecommitdiff
path: root/core/ninep/events.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/ninep/events.zig')
-rw-r--r--core/ninep/events.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ninep/events.zig b/core/ninep/events.zig
index f1e17324..e18b5d96 100644
--- a/core/ninep/events.zig
+++ b/core/ninep/events.zig
@@ -1406,14 +1406,14 @@ test "a click in the body reports the offsets of the word it takes, so the recor
}) |c| for ([_]pardes.Mouse.Button{ config.look_button, config.exec_button }, [_][]const u8{ c.look, c.exec }) |button, want| {
// The pointer rests on the word first, as a hand's does, and
// the hover preview comes up under it.
- p.panes[id].?.scrollBy(c.scroll);
+ p.panes[id].?.scrollBy(p.settings.tab, c.scroll);
_ = try p.render(frame.allocator());
p.update(.{ .mouse = .{ .button = .none, .kind = .motion, .col = c.x, .row = c.y } });
for (0..200) |_| p.update(.tick);
p.update(.{ .mouse = .{ .button = button, .kind = .press, .col = c.x, .row = c.y } });
p.update(.{ .mouse = .{ .button = button, .kind = .release, .col = c.x, .row = c.y } });
try testing.expectEqualStrings(want, call(p, .{ .tag = 2, .op = .read, .node = event, .handle = h, .size = 256 }).bytes);
- p.panes[id].?.scrollBy(-c.scroll);
+ p.panes[id].?.scrollBy(p.settings.tab, -c.scroll);
};
// A click on nothing expands to nothing, and acme then says
// nothing (look.c:37, exec.c:141).