summaryrefslogtreecommitdiff
path: root/test/snapshots/tagbottomshort.snap
blob: 58da6a87975cbb1e6ceba129586e983174aaa6f1 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# The Tagbottom message row against a pane with almost no body. That row is the
# pane's LAST BODY row — the tagline's neighbour once Tagbottom has taken the
# last row — so it only exists while the pane HAS a body row. Two rows is the
# smallest pane that does. One row is a tagline and nothing else, and there the
# message waits: not drawn over the tag, and not on the row above the pane,
# which is what `r.y + r.h - 1 - BOX_H` gives you when the guard is off by one.
file s.txt one\ntwo\nthree\nfour\nfive\nsix
start 11 80 s.txt
wait 8000 s.txt
stable 700 20000
key space t b
stable 700 15000
# `/` with room to spare: the prompt is its own line, drawn on grid 8, the last
# body row, with the cursor; the tagline (grid 9) never holds any of it.
key /
send ZZ
stable 600 8000
stable 400 5000
snap roomy
# two body rows left; the prompt takes the lower one and line 1 still shows
resize 5 80
stable 700 10000
snap two-body
# one body row, and the prompt takes it. The tagline underneath must still be
# drawn in full — this is where an off-by-one eats it.
resize 4 80
stable 700 10000
snap one-body
# the tagline alone. No body row, so nothing of the prompt is drawn anywhere —
# not over the tag, not on the row above the pane, and its caret with it. The
# tagline itself is untouched, exactly as `tag-only` would look unarmed.
resize 2 80
stable 700 10000
snap tag-only
# ...and grown back, still armed, back on the last body row
resize 11 80
stable 700 10000
snap regrown
key esc
settle 100
stable 400 5000
# the SPC leader indicator rides the same row, right-aligned, and shrinks onto
# the single body row with it
resize 4 80
stable 700 10000
key space
stable 400 8000
snap leader-one-body