diff options
Diffstat (limited to 'test/snapshots/tagbottomshort.snap')
| -rw-r--r-- | test/snapshots/tagbottomshort.snap | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/test/snapshots/tagbottomshort.snap b/test/snapshots/tagbottomshort.snap new file mode 100644 index 00000000..a6ca2828 --- /dev/null +++ b/test/snapshots/tagbottomshort.snap @@ -0,0 +1,49 @@ +# 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 10 80 s.txt +wait 8000 s.txt +stable 700 20000 +key space t b +stable 700 15000 +# `/` with room to spare: the prompt is cut off the tagline (grid 9) and drawn +# on grid 8, the last body row, with the cursor. +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 4 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 3 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. The tagline itself is +# untouched: the marker sits after the builtins, so cutting the tail there +# leaves every column of it 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 10 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 3 80 +stable 700 10000 +key space +stable 400 8000 +snap leader-one-body |
