Skip to content

Commit

Permalink
fix: backward compat fzf 0.24.0 (closes #1111)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Apr 2, 2024
1 parent 455b94a commit 15b9b8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/fzf-lua/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,11 @@ M.setup_fzf_interactive_flags = function(command, fzf_field_expression, opts)
local escaped_q = libuv.shellescape(libuv.escape_fzf(opts.query)):gsub("%%", "%%%%")
opts.__fzf_init_cmd = initial_command:gsub(fzf_field_expression, escaped_q)
end
opts.fzf_opts["--disabled"] = true
if opts.__FZF_VERSION >= 0.25 then
opts.fzf_opts["--disabled"] = true
else
opts.fzf_opts["--phony"] = true
end
opts.fzf_opts["--query"] = opts.query
-- OR with true to avoid fzf's "Command failed:" message
if opts.silent_fail ~= false then
Expand Down

0 comments on commit 15b9b8d

Please sign in to comment.