diff options
Diffstat (limited to 'core/look.zig')
| -rw-r--r-- | core/look.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/look.zig b/core/look.zig index b2a7b945..f7084079 100644 --- a/core/look.zig +++ b/core/look.zig @@ -1923,7 +1923,7 @@ test "Look hover waits without mutating the pane and input cancels it" { // Background traffic in another pane does not change the text or geometry // under this pointer and must not strand a stationary hover unarmed. - p.update(.{ .output = .{ .pane = @intCast(other_id), .bytes = "busy\r\n" } }); + p.update(.{ .output = .{ .pane = .at(other_id), .bytes = "busy\r\n" } }); try std.testing.expect(p.look_hover_preview != null); const seam_x = p.view().col_x[0] + p.view().col_w[0] - 1; @@ -2504,9 +2504,9 @@ test "LookNext in a command pane walks its own file:line places, whoever walked while (p.nextEffect()) |_| {} const dst = exec.execute(p, 0, "make") orelse return error.NoCommandPane; while (p.nextEffect()) |_| {} - p.update(.{ .output = .{ .pane = @intCast(dst), .bytes = "x.c:3:1: error: bad\r\ny.c:2:1: warning: odd\r\n" } }); - p.update(.{ .exited = .{ .pane = @intCast(dst), .status = 2 } }); - p.update(.{ .eof = .{ .pane = @intCast(dst) } }); + p.update(.{ .output = .{ .pane = .at(dst), .bytes = "x.c:3:1: error: bad\r\ny.c:2:1: warning: odd\r\n" } }); + p.update(.{ .exited = .{ .pane = .at(dst), .status = 2 } }); + p.update(.{ .eof = .{ .pane = .at(dst) } }); const cmd = p.panes[dst].?; // A walk last made elsewhere, and another pane with places in it. try std.testing.expect(p.executeBuiltinLine(0, "New")); |
