summaryrefslogtreecommitdiff
path: root/core/mouse.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/mouse.zig')
-rw-r--r--core/mouse.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/mouse.zig b/core/mouse.zig
index 14700995..ad76c313 100644
--- a/core/mouse.zig
+++ b/core/mouse.zig
@@ -1538,12 +1538,12 @@ test "a chorded exec an event reader holds is told with its argument, and writte
const line = try std.fmt.bufPrint(&back, "M{s}", .{records[0][1..]});
try std.testing.expectEqual(ctlfs.Status.ok, th.call(p, .{ .tag = 3, .op = .write, .node = event, .handle = h, .data = line }).reply.status);
const pane = p.panes[0].?;
- try std.testing.expectEqualStrings("arg-text", pane.msg[0..pane.msg_len]);
+ try std.testing.expectEqualStrings("arg-text", p.messages.saidBy(pane));
// All three records written back as read, in one write or in three:
// the two after the first are its argument and where it came from,
// never commands of their own.
for ([_]bool{ true, false }) |together| {
- pane.msg_len = 0;
+ p.messages.live_len = 0;
var all: [256]u8 = undefined;
var w = std.Io.Writer.fixed(&all);
for (records) |r| try w.print("M{s}", .{r[1..]});
@@ -1553,7 +1553,7 @@ test "a chorded exec an event reader holds is told with its argument, and writte
var one: [80]u8 = undefined;
_ = th.call(p, .{ .tag = 6, .op = .write, .node = event, .handle = h, .data = try std.fmt.bufPrint(&one, "M{s}", .{r[1..]}) });
}
- try std.testing.expectEqualStrings("arg-text", pane.msg[0..pane.msg_len]);
+ try std.testing.expectEqualStrings("arg-text", p.messages.saidBy(pane));
try std.testing.expect(!th.logHas(p, "run "));
}
_ = th.call(p, .{ .tag = 4, .op = .release, .node = event, .handle = h });