summaryrefslogtreecommitdiff
path: root/test/snapshots/psearch.snap
diff options
context:
space:
mode:
Diffstat (limited to 'test/snapshots/psearch.snap')
-rw-r--r--test/snapshots/psearch.snap12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/snapshots/psearch.snap b/test/snapshots/psearch.snap
index fb721c7d..e2ea1aea 100644
--- a/test/snapshots/psearch.snap
+++ b/test/snapshots/psearch.snap
@@ -1,9 +1,10 @@
# `/` search on a TERMINAL pane: the same tag input as a file pane, searching
# the shell's own scrollback (the plain text view Look reads, prompt rows
# hidden). Results land in a +Search OUTPUT BUFFER — a file pane with no file
-# behind it, so its tag has no Save — and point at `@p0:LINE`, the look target
-# that names a live pane, since a terminal has no path. n/N walk the buffer
-# and look each row, scrolling the terminal to that line of its scrollback.
+# behind it, so its tag has no Save — and point at `@p0:LINE:COL-ENDCOL`, the
+# look target that names a live pane, since a terminal has no path. n/N walk
+# the buffer and look each row, scrolling the terminal to that line of its
+# scrollback and selecting the span the row names.
# PLACEMENT, and this script is the proof: an output buffer is NOT a document
# — it is the result list of the pane that asked for it — so even here, with no
# doc pane in the session for it to join, it does NOT take a column of its own.
@@ -34,8 +35,9 @@ key enter
wait 10000 @p0:2:3
stable 700 15000
snap results
-# n looks result 1: the terminal's cursor lands on that scrollback line, at
-# the matched COLUMN (3, past the leading "x ") — not the start of the line
+# n looks result 1: the terminal's cursor lands on that scrollback line, on
+# the matched SPAN (cols 3..6, past the leading "x ") — not the start of the
+# line, and selected rather than merely parked on
key n
stable 700 15000
snap first