summaryrefslogtreecommitdiff
path: root/test/pdf.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-28 16:15:15 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:15 -0300
commit06fe2290db7d0eb654b9a908358942cfde298e29 (patch)
tree3951919743798ec978e7ae925529c4fbd4ea130a /test/pdf.zig
parent07a3f53993a27c886ccb3ed665acb9c8b34a2873 (diff)
downloadpardes-06fe2290db7d0eb654b9a908358942cfde298e29.tar.gz
pardes-06fe2290db7d0eb654b9a908358942cfde298e29.zip
$ keeps the selections a shell command exits 0 on, and line end is gl
$ was a second key for line end, which helix never meant: in helix it is shell_keep_pipe. It now arms the pipe prompt with a $ marker, runs the command once per range with that range's text on stdin, and keeps the ranges it exits 0 on; the primary stays if kept, else the last kept range takes over, and keeping none changes nothing. The runner's answer is all or nothing, so the command runs in a subshell whose status is echoed as its output. Line end stays on helix's own gl and End; the snapshots, tutor and docs that pressed $ for it press gl. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/pdf.zig')
-rw-r--r--test/pdf.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/pdf.zig b/test/pdf.zig
index 3a592451..8b94c1ae 100644
--- a/test/pdf.zig
+++ b/test/pdf.zig
@@ -859,7 +859,8 @@ test "MuPDF pane renders, navigates, searches, and round-trips its page" {
p.update(.{ .key = .{ .cp = '2' } });
p.update(.{ .key = .{ .cp = 'l' } });
try std.testing.expect(pane.pdf.?.pan_x > 0);
- p.update(.{ .key = .{ .cp = '$' } });
+ p.update(.{ .key = .{ .cp = 'g' } });
+ p.update(.{ .key = .{ .cp = 'l' } });
try std.testing.expectEqual(std.math.maxInt(u16), pane.pdf.?.pan_x);
p.update(.{ .key = .{ .cp = '2' } });
p.update(.{ .key = .{ .cp = 'h' } });