summaryrefslogtreecommitdiff
path: root/src/ninep/tree.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/ninep/tree.zig')
-rw-r--r--src/ninep/tree.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ninep/tree.zig b/src/ninep/tree.zig
index 59ef5ef4..7b107ea7 100644
--- a/src/ninep/tree.zig
+++ b/src/ninep/tree.zig
@@ -1110,6 +1110,10 @@ fn readFile(p: *Pardes, req: Req, target: Target) Reply {
.ctl => ctl.readRoot(p, req),
.commands => ctl.readCommands(p, req),
.recent => recent: {
+ // Every window's files: what the others wrote since, read,
+ // unless a step is out mid-syscall (nothing may change the
+ // core under it): then the list as it was.
+ if (pardes.turn.out == 0) p.store.refresh(p);
var text: std.Io.Writer.Allocating = .init(p.scratch.allocator());
pardes.panes.Output.recentText(p, &text.writer, false) catch break :recent Reply.fail(req.tag, E.NOMEM);
p.fs.stage(p.gpa).appendSlice(p.gpa, text.written()) catch break :recent Reply.fail(req.tag, E.NOMEM);