summaryrefslogtreecommitdiff
path: root/core/ninep/pane.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/ninep/pane.zig')
-rw-r--r--core/ninep/pane.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ninep/pane.zig b/core/ninep/pane.zig
index 76765535..8be26602 100644
--- a/core/ninep/pane.zig
+++ b/core/ninep/pane.zig
@@ -941,7 +941,7 @@ pub fn nameBuffer(p: *Pardes, id: usize, full: []const u8, preserve_tag: bool) !
f.context.revision = null;
pane.geometry_key = 0;
look.invalidateLookHover(p, id);
- p.emit(.{ .watch = .{ .pane = @intCast(id), .on = false } });
+ p.emit(.{ .watch = .{ .pane = .at(id), .on = false } });
events.noteLog(p, .rename, pane);
// A name given: whether a file there is on disk is the disk's to say.
f.on_disk = f.output == null and pardes.Pardes.recentKeeps(p.tape, f.path);
@@ -1065,7 +1065,7 @@ test "a terminal's body stats as long as it reads" {
while (p.nextEffect()) |_| {}
const pane = p.panes[0].?;
try testing.expect(pane.isTerminal());
- p.update(.{ .output = .{ .pane = 0, .bytes = "$ ls\r\nalpha beta\r\n$ " } });
+ p.update(.{ .output = .{ .pane = .at(0), .bytes = "$ ls\r\nalpha beta\r\n$ " } });
const body = Node.of(pane.serial, .body);
const whole = rd(p, body, 0, 1 << 16);
try testing.expect(whole.bytes.len > 0);