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 276261c8..6946401b 100644
--- a/core/ninep/events.zig
+++ b/core/ninep/events.zig
@@ -1341,7 +1341,7 @@ test "an empty range written back is expanded as a click at that point would be"
const pane = p.panes[p.paneBySerial(serial).?].?;
const event = Node.of(serial, .event);
// A look at 1 is a look at `abc`: from dot, past the first, the next.
- pane_files.setDot(pane, .{ .q0 = 4, .q1 = 4 });
+ pane_files.setDot(p.settings.tab, pane, .{ .q0 = 4, .q1 = 4 });
try testing.expectEqual(Status.ok, wr(p, event, "ML1 1\n").reply.status);
try testing.expectEqual(pane_files.State.Range{ .q0 = 8, .q1 = 11 }, pane_files.dotOf(pane));
// An exec at 15 runs the word there, `Newcol`.
@@ -1386,7 +1386,7 @@ test "a click in the body reports the offsets of the word it takes, so the recor
const rect = p.view().rects[id];
const x0 = rect.x + config.GUTTER + config.PREFIX_W;
const y0 = rect.y + p.panes[id].?.tag_rows;
- const tab: u16 = config.tab_now;
+ const tab: u16 = p.settings.tab;
const Click = struct { x: u16, y: u16, look: []const u8, exec: []const u8, scroll: i32 = 0 };
// Where the wrapped line's `qty` landed, as drawn.
const surface = try p.render(frame.allocator());