Skip to content

Commit

Permalink
fix: using --exit-0 with fzf >= 0.53 (#1630)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Dec 23, 2024
1 parent 2ab648f commit 7022b5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/fzf-lua/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ end
M.act = function(actions, selected, opts)
if not actions or not selected then return end
local keybind, entries = M.normalize_selected(actions, selected, opts)
-- fzf >= 0.53 and `--exit-0`
if not keybind then return end
local action = actions[keybind]
-- Backward compat, was action defined as "default"
if not action and keybind == "enter" then
Expand Down

0 comments on commit 7022b5b

Please sign in to comment.