run fzf with 'sh -c' to prevent woes with other shell types (#210)

main
bhagwan 3 years ago
parent fc2f4b5d7d
commit 62937db2db

@ -108,7 +108,7 @@ function M.raw_fzf(contents, fzf_cli_args, opts)
end
local co = coroutine.running()
vim.fn.termopen(cmd, {
vim.fn.termopen({"sh", "-c", cmd}, {
cwd = cwd,
on_exit = function(_, rc, _)
local f = io.open(outputtmpname)

Loading…
Cancel
Save