summaryrefslogtreecommitdiff
path: root/test/snapshots/shrinktag.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 00:17:45 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:15 -0300
commit15ddd805905f785f4dde463d4d6b91e1d2c41e26 (patch)
treed812a922785101f0b14f672ca47be6fd67b49833 /test/snapshots/shrinktag.snap
parent64b6a0dbdaab4b314ccbce667709d71a8561daf0 (diff)
downloadpardes-15ddd805905f785f4dde463d4d6b91e1d2c41e26.tar.gz
pardes-15ddd805905f785f4dde463d4d6b91e1d2c41e26.zip
A pane's last row of text is no resize handle; the grip is, and the GUI's rule
A press on a pane's last row began a seam drag, so the row could not be clicked or swept like the rest of the text (rsearch dragged the handle out of the way first). Now no row of text is a handle: in the GUI a press on the 2 px rule between two panes drags their seam, and anywhere the grip does, as acme's button moves a window -- dragged up or down its own column it moves the pane's top, either pane down to its tag alone (acme's coldragwin), dragged down inside itself too. The hover hint over a last row is gone; column edges resize as they did. Scripts that dragged a seam drag a grip instead and match their goldens; six goldens lost the hint or moved a cursor to the clicked text, re-recorded by name. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/snapshots/shrinktag.snap')
-rw-r--r--test/snapshots/shrinktag.snap37
1 files changed, 19 insertions, 18 deletions
diff --git a/test/snapshots/shrinktag.snap b/test/snapshots/shrinktag.snap
index f17c402f..31edad14 100644
--- a/test/snapshots/shrinktag.snap
+++ b/test/snapshots/shrinktag.snap
@@ -1,6 +1,8 @@
-# a pane can shrink to just its tagline: border-drag the handle to the tag row
-# (0 body rows), the gutter box still grabs a move, and dragging back down
-# restores the body intact (the hidden pane's pty/vt is never resized)
+# a pane can shrink to just its tagline: the pane below dragged by its grip up
+# to the tag row (0 body rows) -- a terminal has no rule between panes, so
+# the grip is the handle, as acme's button is -- the gutter box still grabs a
+# move, and dragging back down restores the body intact (the hidden pane's
+# pty/vt is never resized)
file w.txt x
start 31 100 -n 3
wait 8000 w.txt
@@ -16,16 +18,15 @@ key esc
settle 100
stable 400 5000
snap before
-# drag pane 0's bottom handle (its last row) up to its tag row: tag-only pane
-press left 20 17
-drag left 20 3
-release left 20 3
+# drag the lower pane's grip up under pane 0's tag row: tag-only pane
+press left 1 18
+drag left 1 3
+release left 1 3
motion 40 25
stable 500 8000
snap shrunk
-# the shrunk pane's single row is now the pair's resize handle, but the gutter
-# box must still win: grab it, preview a move into the right column, abort by
-# releasing over the pane itself
+# the shrunk pane's gutter box grabs a move: preview one into the right
+# column, abort by releasing over the pane itself
press left 1 3
drag left 70 9
stable 400 5000
@@ -33,17 +34,17 @@ snap move-preview
drag left 20 3
release left 20 3
stable 400 5000
-# re-enlarge: the tag row doubles as the drag handle, pull it back down
-press left 20 3
-drag left 20 17
-release left 20 17
+# re-enlarge: the lower pane's grip, now under pane 0's tag, pulled back down
+press left 1 4
+drag left 1 18
+release left 1 18
motion 40 25
stable 500 8000
snap restored
-# the bottom pane can shrink to ITS tag too: drag past the bottom, clamp holds
-press left 20 17
-drag left 20 31
-release left 20 31
+# the bottom pane can shrink to ITS tag too: its grip dragged past the bottom
+press left 1 18
+drag left 1 31
+release left 1 31
motion 40 25
stable 500 8000
snap bottom-shrunk