summaryrefslogtreecommitdiff
path: root/core/Core.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Core.zig')
-rw-r--r--core/Core.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Core.zig b/core/Core.zig
index d0c9976d..11f254ab 100644
--- a/core/Core.zig
+++ b/core/Core.zig
@@ -2037,6 +2037,10 @@ pub fn sync(p: *Pardes) void {
if (cur >= top + pane.tag_rows) top = cur + 1 - pane.tag_rows;
pane.tag_top = @intCast(@min(top, lines - pane.tag_rows));
} 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);
+ 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
// (layout keeps a terminal two body rows where the window has