summaryrefslogtreecommitdiff
path: root/test/snapshots/splitparent.snap
blob: 1fd4e935542d1a9b1a4152f8df21b5d86cfc4221 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# a new pane never opens under a too-short parent: Alt-n from a tag-only pane
# splits the tall sibling in its column instead; when NO pane could leave the
# newcomer 2 body rows, the tallest one anywhere is split
start 31 100 -n 3
stable 700 20000
# shrink pane 0 (top-left) to just its tagline
press left 20 17
drag left 20 3
release left 20 3
motion 40 25
stable 500 8000
snap shrunk
# Alt-n from the tag-only pane: the new shell opens below the tall sibling
# underneath it, not as another 1-row sliver
key a-n
stable 700 15000
snap swap-parent
# squeeze the grid until no pane is 5 rows tall, then Alt-n again: the
# tallest pane (right column) is split even though the active one is left
resize 6 100
stable 700 15000
key a-n
stable 700 15000
snap tallest
resize 31 100
stable 700 15000
snap regrown