From 96383331f09e8af3fa24f767b3c56863309723b8 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 29 Sep 2026 06:43:39 -0300 Subject: 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 --- src/pardes.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pardes.zig') 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 -- cgit v1.3