summaryrefslogtreecommitdiff
path: root/core/Core.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Core.zig')
-rw-r--r--core/Core.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Core.zig b/core/Core.zig
index e43f9e83..26860365 100644
--- a/core/Core.zig
+++ b/core/Core.zig
@@ -2062,7 +2062,8 @@ pub fn sync(p: *Pardes) void {
} else pane.tag_top = 0;
// The band unrolled under the tag's text pushes the body down:
// the tag's rows, as everything under them counts them.
- pane.band_rows = if (pane.collapsed) 0 else @min(pardes.Band.takes(p, id), r.h -| pane.tag_rows);
+ // A terminal's or a kind's is drawn over its body instead (Band.over).
+ pane.band_rows = if (pane.collapsed or pardes.Band.over(pane)) 0 else @min(pardes.Band.takes(p, id), r.h -| pane.tag_rows);
pane.tag_rows += pane.band_rows;
const cols = @max(1, r.w -| config.GUTTER);
// The tag steals the top rows. The pty is what the pane shows