summaryrefslogtreecommitdiff
path: root/src/Output.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Output.zig')
-rw-r--r--src/Output.zig9
1 files changed, 5 insertions, 4 deletions
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;