summaryrefslogtreecommitdiff
path: root/test/snapshots/lookloaded.snap
blob: 1f920a93bc97f9ed4fd7f9bde9e7f02cafffe77b (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
# a look matches an already-LOADED pane before touching the filesystem: open
# big.txt:40 from a look, rm the file on disk, then look big.txt:10 — the
# loaded pane focuses and recenters even though realpath now fails. (This
# fs-last ordering is what lets the fs-less web build focus dump panes.)
lines big.txt 60
start 31 100 -n 3
wait 8000 big.txt
stable 700 20000
press left 5 9
release left 5 9
stable 400 5000
key i
text big.txt:40 big.txt:10
key esc
settle 100
stable 400 5000
press right 7 9
release right 7 9
stable 700 15000
snap file-open
# Use the unrelated right-hand shell to remove the file: the source shell now
# stays above its file and is only a few rows tall.
press left 70 12
release left 70 12
stable 400 5000
key c-b
stable 600 8000
text rm big.txt; echo GO''NE
key enter
wait 8000 GONE
stable 700 15000
key c-b
stable 600 8000
snap removed
# look big.txt:10: nothing on disk, but the pane is loaded — it focuses and
# recenters on line 10 (before this change: realpath fails, look no-ops)
# Put a fresh reference in the right-hand shell, then look it. This ensures the
# gesture hits the missing path rather than empty space after source resizing.
press left 55 9
release left 55 9
key i
text big.txt:10
key esc
stable 400 5000
press right 57 9
release right 57 9
stable 700 15000
snap look-noFS