From f9d53303bb00225edb6e46ca1851e5cf1b55e623 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 13 Oct 2022 14:48:32 +0900 Subject: [PATCH] [vim] Remove unnecessary powershell check &shell is guaranteed to be cmd.exe on windows because we call s:use_sh() --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index d1da7b79..40f01a0e 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -464,7 +464,7 @@ try let temps = { 'result': s:fzf_tempname() } let optstr = s:evaluate_opts(get(dict, 'options', '')) try - let fzf_exec = (&shell =~ 'powershell' ? '&' : '') . shellescape(fzf#exec()) + let fzf_exec = shellescape(fzf#exec()) catch throw v:exception endtry