summaryrefslogtreecommitdiff
path: root/test/snapshots/wrap.snap
diff options
context:
space:
mode:
Diffstat (limited to 'test/snapshots/wrap.snap')
-rw-r--r--test/snapshots/wrap.snap23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/snapshots/wrap.snap b/test/snapshots/wrap.snap
index b8849474..51ad6f82 100644
--- a/test/snapshots/wrap.snap
+++ b/test/snapshots/wrap.snap
@@ -38,6 +38,29 @@ snap clicked
key j
stable 400 5000
snap logical-j
+# ...while `gj`/`gk` are the VISUAL pair. `gg` puts the cursor back at line 1
+# column 0 with no goal column left over, `3l` moves three in, and from there
+# each `gj` steps ONE screen row: still line 1, the column kept INSIDE the row,
+# so the cursor stays in grid column 10 while the row walks 2 -> 3 -> 4. `gk`
+# steps back onto the row it came from. This is the only motion that reads the
+# wrap map's own arithmetic, so it is the one that can silently become `j`.
+key g g
+stable 400 5000
+key 3 l
+stable 400 5000
+key g j
+stable 400 5000
+snap visual-gj
+key g j
+stable 400 5000
+snap visual-gj-again
+key g k
+stable 400 5000
+snap visual-gk
+# a count is counted in ROWS too, and two of them are still inside line 1
+key 2 g j
+stable 400 5000
+snap visual-count-gj
# SPC t w turns it off: line 1 back on ONE row, clipped at the right edge with
# no marker, lines 2 and 3 under it — the render this pane had before soft
# breaks existed, because the map the readers consult goes back to empty and