summaryrefslogtreecommitdiff
path: root/src/pardes.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 06:43:39 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:16 -0300
commit96383331f09e8af3fa24f767b3c56863309723b8 (patch)
tree12aa88b5e4832623de2c3a413b7b237f6ef34add /src/pardes.zig
parent35e865eba278a1ef48a6ce160767d652a9c54ae8 (diff)
downloadpardes-96383331f09e8af3fa24f767b3c56863309723b8.tar.gz
pardes-96383331f09e8af3fa24f767b3c56863309723b8.zip
A terminal keeps its tag and two body rows through drags, squeezes and a smaller window
A terminal of one body row loses its prompt's mark and reads busy for ever. Placement already refused to make one that short; now layout never leaves one there either: a grip drag stops at the floor, and a column squeezed by weights or by the window takes the rows from its other panes. Text panes keep acme's way and can still be dragged to their tag, since acme has no terminals to follow. The shrinktag, splitparent and cornerdrag goldens are re-recorded for it, shrinktag's re-grab moved to where the grip now is. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/pardes.zig')
-rw-r--r--src/pardes.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pardes.zig b/src/pardes.zig
index 8e9d3c7e..98b8819c 100644
--- a/src/pardes.zig
+++ b/src/pardes.zig
@@ -6598,9 +6598,9 @@ pub const Pardes = struct {
pane.tag_top = @intCast(@min(top, lines - pane.tag_rows));
} else pane.tag_top = 0;
const cols = @max(1, r.w -| config.GUTTER);
- // The tag steals the top rows. The pty is what the pane shows,
- // even one row dragged short: a taller pty would put its cursor
- // below the pane (only winsize keeps two, ctlfs.pty).
+ // The tag steals the top rows. The pty is what the pane shows
+ // (layout keeps a terminal two body rows where the window has
+ // them): a taller pty would put its cursor below the pane.
const rows = @max(1, r.h -| pane.tag_rows);
// A terminal's pty follows its pane down to a row, whatever the
// resize; only a folded one keeps the size it had, and one not