From fdd3874367af85b02a5d6c5bf9b21226aea5a56a Mon Sep 17 00:00:00 2001 From: bhagwan Date: Wed, 9 Feb 2022 19:53:47 -0800 Subject: [PATCH] internal: debug_cmd option to supress mulitprocess cmd debug print --- lua/fzf-lua/core.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/fzf-lua/core.lua b/lua/fzf-lua/core.lua index dfb855a..07944ec 100644 --- a/lua/fzf-lua/core.lua +++ b/lua/fzf-lua/core.lua @@ -370,7 +370,9 @@ M.mt_cmd_wrapper = function(opts) end local cmd = libuv.wrap_spawn_stdio(opts_to_str(opts), fn_transform, fn_preprocess) - if opts.debug then print(cmd) end + if opts.debug_cmd or opts.debug and not (opts.debug_cmd==false) then + print(cmd) + end return cmd else return libuv.spawn_nvim_fzf_cmd(opts,