Skip to content

Commit f8cf874

Browse files
committed
fix(live_grep): resume after process abort
1 parent ebdf242 commit f8cf874

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/fzf-lua/core.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ M.setup_fzf_live_flags = function(command, opts)
11121112
local action = M.can_transform(opts) and "transform" or "reload"
11131113
table.insert(opts._fzf_cli_args, "--bind="
11141114
.. libuv.shellescape(string.format("change:+%s:%s", action, reload_command)))
1115-
if utils.has(opts, "fzf", { 0, 35 }) and (opts.exec_empty_query or #query > 0) then
1115+
if opts.exec_empty_query or #query > 0 or type(opts.contents) == "function" then
11161116
table.insert(opts._fzf_cli_args, "--bind="
11171117
.. libuv.shellescape(string.format("start:+%s:%s", action, reload_command)))
11181118
end

0 commit comments

Comments
 (0)