fix: force ripgrep to never try search stdin

This commit is contained in:
CJ van den Berg 2025-04-30 11:35:25 +02:00
parent b3c5f4cbb9
commit 36e6d6a69f
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -126,6 +126,7 @@ const Process = struct {
"--json",
"--smart-case",
self.query,
"./.", // never search stdin
});
self.sp = tp.subprocess.init(self.allocator, args, module_name, self.stdin_behavior) catch |e| return tp.exit_error(e, @errorReturnTrace());
tp.receive(&self.receiver);