From 528c5a28ac3b813a2d0c06a019d7758476257915 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 1 Oct 2026 06:47:48 -0300 Subject: A second LookWord list look in a directory refills its +Search, as a terminal's word looks already did, rather than stacking another Each word looked at with LookWord list opened a +Search of its own in the same directory. Word looks now share the directory's one, the next word refilling it; a `/` search still keeps a +Search each. Co-Authored-By: Claude Opus 5.5 --- src/Output.zig | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/Output.zig') diff --git a/src/Output.zig b/src/Output.zig index e6448e36..fc300e8b 100644 --- a/src/Output.zig +++ b/src/Output.zig @@ -525,10 +525,11 @@ pub fn fillResults(p: *Pardes, id: usize, dir: []const u8, from: Origin, arg: [] const rf = if (rp.file) |*f| f else continue; const o = if (rf.output) |*x| x else continue; // A file search's rows share the directory's one +Search, and so do - // a terminal's word looks (a look of a word no file names, clicked - // or written): the next word refills it rather than stacking - // another. A `/` search keeps a +Search each, which n and N walk. - const terminal_word = p.word_look and from == .search and pane.isTerminal() and o.from == .search; + // word looks (`LookWord list`, a terminal's word: a look of a word + // no file names, clicked or written): the next word refills it + // rather than stacking another. A `/` search keeps a +Search each, + // which n and N walk. + const terminal_word = p.word_look and from == .search and o.from == .search; const shared = (fileSearch(from) and fileSearch(o.from)) or terminal_word or (lspProse(from) and lspProse(o.from)); if (i == id and !shared) continue; if (!shared and !std.meta.eql(o.from, from)) continue; -- cgit v1.3