diff options
Diffstat (limited to 'core/Kind.zig')
| -rw-r--r-- | core/Kind.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Kind.zig b/core/Kind.zig index 764b6f06..806cd858 100644 --- a/core/Kind.zig +++ b/core/Kind.zig @@ -312,6 +312,9 @@ pub fn reopen(p: *Pardes, id: usize, s: *Slot, bytes: ?[]const u8) bool { s.tail.len = @intCast(w.buffered().len); } s.opened = if (bytes) |b| std.hash.Wyhash.hash(0, b) else 0; + // A state made afresh is told every view afresh: the views told the + // one before (a file changed on disk, a Restore) are not its. + s.views = @splat(0); // Its file not read (not here): it waits for it, a placeholder. if (s.ops != null and bytes == null and s.path.len > 0) _ = cl.refused.print("{s} is not here", .{s.path}) else if (s.ops) |ops| { const path_z = s.arena.allocator().dupeSentinel(u8, s.path, 0) catch ""; |
