summaryrefslogtreecommitdiff
path: root/core/dump.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/dump.zig')
-rw-r--r--core/dump.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/dump.zig b/core/dump.zig
index 3b5ed421..1616f557 100644
--- a/core/dump.zig
+++ b/core/dump.zig
@@ -651,7 +651,7 @@ fn reviveSession(p: *Pardes, previous: ?*Pardes, resumed: bool) !void {
/// the addon's).
fn revivePane(p: *Pardes, id: usize, pane: *pardes.panes.Pane, was_on_disk: bool) void {
if (pane.addon) |slot| {
- if (slot.path.len > 0 and filesystem.localPath(slot.path) != null) p.emit(.{ .watch = .{ .pane = @intCast(id), .on = true } });
+ if (slot.path.len > 0 and filesystem.localPath(slot.path) != null) p.emit(.{ .watch = .{ .pane = .at(id), .on = true } });
return reviveSlot(p, id, slot);
}
if (pane.terminal != null) {
@@ -690,7 +690,7 @@ fn revivePane(p: *Pardes, id: usize, pane: *pardes.panes.Pane, was_on_disk: bool
f.content = text;
} else |_| {}
}
- p.emit(.{ .watch = .{ .pane = @intCast(id), .on = true } });
+ p.emit(.{ .watch = .{ .pane = .at(id), .on = true } });
// Its file gone from disk since the dump: its text is nowhere else, so
// it is said deleted, and Del, Exit and Restore ask first. One never on
// disk (a name not yet saved) comes back as it was.