fix(picker.lazy): don't use live searches. Fixes #809

This commit is contained in:
Folke Lemaitre 2025-01-31 06:28:01 +01:00
parent 84277a3e01
commit 1a5fd93b89
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 3 additions and 3 deletions

View file

@ -121,7 +121,7 @@ function M.grep(opts, ctx)
local file, line, col, text = item.text:match("^(.+):(%d+):(%d+):(.*)$")
if not file then
if not item.text:match("WARNING") then
error("invalid grep output: " .. item.text)
Snacks.notify.error("invalid grep output:\n" .. item.text)
end
return false
else