summaryrefslogtreecommitdiff
path: root/test/snapshots/fsearch.snap
diff options
context:
space:
mode:
Diffstat (limited to 'test/snapshots/fsearch.snap')
-rw-r--r--test/snapshots/fsearch.snap25
1 files changed, 15 insertions, 10 deletions
diff --git a/test/snapshots/fsearch.snap b/test/snapshots/fsearch.snap
index af1363dd..b9b7ddf4 100644
--- a/test/snapshots/fsearch.snap
+++ b/test/snapshots/fsearch.snap
@@ -1,11 +1,11 @@
# `/` file search: the pattern types into the tag (persistent, no popup);
# Enter searches the buffer in-core and writes `path:LINE:COL-ENDCOL text` into
# a +Search OUTPUT BUFFER (a file pane with no file behind it — no Save in its
-# tag); n/N select the next/prev row there and look it, so the file pane
-# scrolls to the hit AND SELECTS IT — the row names the match's whole span, not
-# just where it starts. Esc abandons the input; a no-match search opens an EMPTY buffer
-# (every search gets its own, stacked under the pane) and leaves n with
-# nowhere to go.
+# tag); n/N SELECT the next/prev row there and open nothing, and Enter — the
+# look chord — is what scrolls the file pane to the hit AND SELECTS IT: the row
+# names the match's whole span, not just where it starts. Esc abandons the
+# input; a no-match search opens an EMPTY buffer (every search gets its own,
+# stacked under the pane) with nothing in it for n to stop on.
file g.txt l1\nMARK a\nl3\nl4\nl5\nMARK b\nl7\nl8\nl9\nMARK c\nl11\nl12
start 30 180 -n 3
wait 8000 g.txt
@@ -34,21 +34,25 @@ key enter
wait 10000 g.txt:2:1-4 MARK
stable 700 10000
snap results
-# n selects result 1 in the results buffer, scrolls the file to line 2 and
-# selects the four cells the pattern matched there — the styles below are what
-# prove the second half of that
+# n selects result 1 and Enter looks it: the file scrolls to line 2 and the
+# four cells the pattern matched there come up selected — the styles below are
+# what prove the second half of that
key n
+key enter
stable 700 15000
snap first
snapstyle first
key n
+key enter
stable 700 15000
snap second
key n
+key enter
stable 700 15000
snap third
-# N walks back up to result 2 (line 6)
+# N walks back up to result 2 (line 6), Enter looks it
key N
+key enter
stable 700 15000
snap back
# Esc abandons the input: the tag tail is restored
@@ -58,7 +62,8 @@ key esc
settle 100
stable 400 5000
snap cancel
-# a no-match search: n has nowhere to go (nothing changes, no crash)
+# a no-match search: nothing in the empty list for n to stop on, so the ring
+# carries it back into the list that has rows and it resumes there
key /
text zzqq
key enter