summaryrefslogtreecommitdiff
path: root/test/snapshots/wrap.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-08-24 22:18:24 -0300
committerGabriel Schneider <[email protected]>2026-08-25 09:42:07 -0300
commit08eadb3b46dc70a297ff89308dd1cd26237785d6 (patch)
tree66152ea18a3639dd216b6e658d9cd5503201afdc /test/snapshots/wrap.snap
parentc3d0b84b7961ae26d2d654e7120821cc2d83d20d (diff)
downloadpardes-08eadb3b46dc70a297ff89308dd1cd26237785d6.tar.gz
pardes-08eadb3b46dc70a297ff89308dd1cd26237785d6.zip
syntax + pdf_pane + file_pane: prose grammars paint, pdf Esc cancels, gj/gk walk wrapped rows
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