diff options
Diffstat (limited to 'core/Kind.zig')
| -rw-r--r-- | core/Kind.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Kind.zig b/core/Kind.zig index 05a813f3..7641c2d1 100644 --- a/core/Kind.zig +++ b/core/Kind.zig @@ -278,7 +278,7 @@ pub fn open(p: *Pardes, id: usize, k: u8, path: ?[]const u8, bytes: ?[]const u8) _ = reopen(p, id, s, bytes); // Its file watched, as a text's is: changed on disk, it opens again // from it (fileChanged); retirePane lets the watch go. - if (s.path.len > 0 and @import("fs.zig").localPath(s.path) != null) p.emit(.{ .watch = .{ .pane = @intCast(id), .on = true } }); + if (s.path.len > 0 and @import("fs.zig").localPath(s.path) != null) p.emit(.{ .watch = .{ .pane = .at(id), .on = true } }); return pane; } @@ -995,7 +995,7 @@ const Call = struct { for (o.jobs) |token| if (token != 0) { cl.slot.tokens = token; }; - if (cl.p) |p| if (p.panes[cl.id]) |pane| for (o.jobs) |token| if (token != 0) p.emit(.{ .job = .{ .pane = @intCast(cl.id), .serial = pane.serial, .token = token } }); + if (cl.p) |p| if (p.panes[cl.id]) |pane| for (o.jobs) |token| if (token != 0) p.emit(.{ .job = .{ .pane = .at(cl.id), .serial = pane.serial, .token = token } }); for (o.cancels) |token| if (token != 0) { for (&cl.slot.jobs) |*j| if (j.*) |job| if (job.token == token) { cl.slot.gpa.free(job.in); |
