summaryrefslogtreecommitdiff
path: root/src/layout.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout.zig')
-rw-r--r--src/layout.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/layout.zig b/src/layout.zig
index c7d7a189..f687cac7 100644
--- a/src/layout.zig
+++ b/src/layout.zig
@@ -847,6 +847,10 @@ fn splitAt(p: *Pardes, c: usize, id: usize, y: u16) void {
pane.vweight = @floatFromInt(@max(1, (r.y + r.h) - row));
}
+/// A pane's top plus its tag's rows, as heights go: a split this far down
+/// leaves the pane its tag and that much of its body, whichever end the tag
+/// is on (Tagbottom's is at its foot, the height the same; behaviour test
+/// "placement: under Tagbottom...").
fn bodyTop(p: *const Pardes, id: usize) u16 {
return p.rects[id].y + p.panes[id].?.tag_rows;
}