diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-28 22:02:04 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:15 -0300 |
| commit | b660adabce36e90cbfbb52d95715528983376ab5 (patch) | |
| tree | 655cbad2aee854430700359d454dce7f626dc651 /test/snapshots/rsearch.snap | |
| parent | 0acd945d85887da88f2863219e706000ca738cdd (diff) | |
| download | pardes-b660adabce36e90cbfbb52d95715528983376ab5.tar.gz pardes-b660adabce36e90cbfbb52d95715528983376ab5.zip | |
A pane whose whole text fits in its rows never scrolls to keep a margin
The scroll margin reveals text; with none off screen there is nothing to
reveal. ensureCursorVisible and a centred look both leave such a pane at its
top. A longer file keeps helix's clamp (hxdiff and hxparity unchanged).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/snapshots/rsearch.snap')
| -rw-r--r-- | test/snapshots/rsearch.snap | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/test/snapshots/rsearch.snap b/test/snapshots/rsearch.snap index d880e557..0ce257bd 100644 --- a/test/snapshots/rsearch.snap +++ b/test/snapshots/rsearch.snap @@ -50,17 +50,16 @@ snap select # right-CLICK the path `sub/dep.txt:3` (line 2, col 18): isFileChar keeps / . : # so the click expands the whole token and it RESOLVES — a look, not a search — # opening dep.txt scrolled to line 3 (DEPTARGET). The "don't break paths" case. -press right 18 8 -release right 18 8 +press right 18 9 +release right 18 9 wait 10000 DEPTARGET stable 700 15000 snap path-open # A click does not merely LIST the hits, it goes to one: this re-search of -# `count_x` (line 3, col 12: acme sized code.txt to its four lines, and the -# first search scrolled line 1 off) also STEPS onto hit 1, so the cursor lands -# in the match, not where the click was. -press right 12 9 -release right 12 9 +# `count_x` (line 1, col 15) also STEPS onto hit 1, so the cursor lands in the +# match, not where the click was. +press right 15 8 +release right 15 8 stable 700 15000 snap step1 # ...and the same word clicked in its OTHER place (line 3, col 10) opens NO @@ -75,9 +74,9 @@ press right 10 10 release right 10 10 stable 700 15000 snap step3 -# acme sized code.txt to its four lines, and on so tight a pane a click on -# line 4 scrolls it to keep its context rows: drag its last row (the resize -# handle) down four rows first, so the rows below stay where they are clicked. +# acme sized code.txt to its four lines, so line 4 is on its last row, and a +# pane's last row is its resize handle: a press there would drag the seam, not +# sweep text. Drag that handle down four rows first. press left 40 11 drag left 40 15 release left 40 15 |
