File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ return {
5050 -- `tbl_map` below preventing fzf history append on esc
5151 -- exec_silent = true,
5252 }
53- opts . actions = vim . tbl_map ( function ( act )
53+ for k , act in pairs ( opts . actions ) do
5454 act = type (act ) == " function" and { fn = act } or act
5555 act = type (act ) == " table" and type (act [1 ]) == " function"
5656 and { fn = act [1 ], reuse = true } or act
@@ -60,6 +60,8 @@ return {
6060 and not act .reload
6161 and not act .noclose
6262 and not act .reuse
63+ -- ignore `false` actions (#2407)
64+ and not k :match (" ^_" )
6365 then
6466 local fn = act .fn
6567 act .exec_silent = true
@@ -80,8 +82,8 @@ return {
8082 end
8183 end
8284 end
83- return act
84- end , opts . actions )
85+ opts . actions [ k ] = act
86+ end
8587 -- Hijack the resize event to reload buffer/tab list on unhide
8688 FzfLua .win .on_SIGWINCH (opts , " win.unhide" , function ()
8789 if type (opts ._contents ) == " string"
You can’t perform that action at this time.
0 commit comments