summaryrefslogtreecommitdiff
path: root/src/Kind.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Kind.zig')
-rw-r--r--src/Kind.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Kind.zig b/src/Kind.zig
index d3feed96..6d4caec6 100644
--- a/src/Kind.zig
+++ b/src/Kind.zig
@@ -702,8 +702,11 @@ pub fn viewOf(p: *const Pardes, k: u8, id: usize) c.pa_view {
const pane = p.panes[id] orelse return out;
const r = v.rects[id];
// The live view's share of the pane is in its own fields, another's parked.
- const collapsed, const tag_rows, const notices = if (k == p.live) .{ pane.collapsed, pane.tag_rows, pane.notices.span() } else .{ pane.pv[k].collapsed, pane.pv[k].tag_rows, pane.pv[k].notices.span() };
+ const collapsed, const tag_rows = if (k == p.live) .{ pane.collapsed, pane.tag_rows } else .{ pane.pv[k].collapsed, pane.pv[k].tag_rows };
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 th = p.theme();
const rgb = struct {
fn f(x: [3]u8) u32 {