From 7022b5b002bb7488e1be4470bad2342bcc8d4d99 Mon Sep 17 00:00:00 2001 From: bhagwan Date: Mon, 23 Dec 2024 07:50:43 -0800 Subject: [PATCH] fix: using `--exit-0` with fzf >= 0.53 (#1630) --- lua/fzf-lua/actions.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/fzf-lua/actions.lua b/lua/fzf-lua/actions.lua index 10566b89..07f187f4 100644 --- a/lua/fzf-lua/actions.lua +++ b/lua/fzf-lua/actions.lua @@ -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