From 0cf9468bcb44027c65cc9a090dce9cc1c5894e60 Mon Sep 17 00:00:00 2001 From: bhagwan Date: Fri, 11 Mar 2022 12:31:11 -0800 Subject: [PATCH] bugfix: accidentally broke sending 'opts' as function --- lua/fzf-lua/config.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/fzf-lua/config.lua b/lua/fzf-lua/config.lua index 4d36569..012736e 100644 --- a/lua/fzf-lua/config.lua +++ b/lua/fzf-lua/config.lua @@ -632,15 +632,15 @@ end function M.normalize_opts(opts, defaults) if not opts then opts = {} end - -- save the user's call parameters separately - -- we reuse those with 'actions.grep_lgrep' - opts.__call_opts = opts.__call_opts or utils.deepcopy(opts) - -- opts can also be a function that returns an opts table if type(opts) == 'function' then opts = opts() end + -- save the user's call parameters separately + -- we reuse those with 'actions.grep_lgrep' + opts.__call_opts = opts.__call_opts or utils.deepcopy(opts) + -- inherit from globals.actions? if type(defaults._actions) == 'function' then defaults.actions = vim.tbl_deep_extend("keep",