summaryrefslogtreecommitdiff
path: root/core/Kind.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Kind.zig')
-rw-r--r--core/Kind.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/Kind.zig b/core/Kind.zig
index 764b6f06..4e1aa469 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 "";
@@ -763,7 +766,7 @@ pub fn viewOf(p: *const Pardes, k: u8, id: usize) c.pa_view {
if (collapsed) return out;
// Its bands made again, never the copy a step or a park left: they are
// derived, so a client joined from a dump has none.
- const notices = pardes.Messages.bands(p, v, pane, tag_rows, r, id).span();
+ const notices = pardes.Messages.bands(p, pane, tag_rows, r).span();
const th = p.theme();
const rgb = struct {
fn f(x: [3]u8) u32 {