summaryrefslogtreecommitdiff
path: root/test/output.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 04:45:20 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:15 -0300
commitbda5b5f621d0edd8e26f9700043ab21cae18f329 (patch)
treeb183df1b137f405a9dcecfe32769e374d2da5c50 /test/output.zig
parent85d5467023a9db801d8ea2538e9611b71cd10d9d (diff)
downloadpardes-bda5b5f621d0edd8e26f9700043ab21cae18f329.tar.gz
pardes-bda5b5f621d0edd8e26f9700043ab21cae18f329.zip
A looked word selects its next place in its own pane, as acme's look3
A plain word looked at (a look write, a right click, an ML record written back) opened another identically named +Search pane each time, until the panes ran out, and never wrapped. As acme's look3 searches the text for it (look.c:210), it now selects the word's next place in that pane after the dot, wrapping at the end, and opens nothing. LookWord list, a new root setting, keeps the +Search listing (search is the default); the rsearch snapshot and an output test that walk the listing say LookWord list. (The leader-path check over every builtin gets a comptime branch quota, as one more builtin took the GUI build past the default.) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/output.zig')
-rw-r--r--test/output.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/output.zig b/test/output.zig
index f3e61e93..478f1b4a 100644
--- a/test/output.zig
+++ b/test/output.zig
@@ -862,6 +862,7 @@ test "n/N resumes the result output whose Look moved focus away" {
const p = try Pardes.init(std.testing.allocator, .{ .file = path, .cols = 80, .rows = 24 });
defer p.deinit();
p.locations_config.layout = .@"inline";
+ p.settings.look_word = .list; // the +Search listing is what is walked
try std.testing.expect(p.executeBuiltinLine(0, "Look target"));
const rid = p.panes[0].?.search_pane orelse return error.MissingResults;