diff options
Diffstat (limited to 'src/dump.zig')
| -rw-r--r-- | src/dump.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dump.zig b/src/dump.zig index 8aa4aa16..9849c8e4 100644 --- a/src/dump.zig +++ b/src/dump.zig @@ -596,7 +596,10 @@ fn reviveSession(p: *Pardes, previous: ?*Pardes, resumed: bool) !void { /// kind's pane opened again (a PDF a build before the pdf addon dumped, as /// the addon's). fn revivePane(p: *Pardes, id: usize, pane: *pardes.panes.Pane, was_on_disk: bool) void { - if (pane.addon) |slot| return reviveSlot(p, id, slot); + if (pane.addon) |slot| { + if (slot.path.len > 0 and filesystem.localPath(slot.path) != null) p.emit(.{ .watch = .{ .pane = @intCast(id), .on = true } }); + return reviveSlot(p, id, slot); + } if (pane.terminal != null) { // A command pane comes back finished, showing what it said: its // command is not run again. A host that runs shells starts one |
