summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2022-10-13 14:48:32 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2022-10-13 14:48:32 +0900
commitf9d53303bb00225edb6e46ca1851e5cf1b55e623 (patch)
tree3822eebcbc56b8eafa43ad2e1bf2dd676bbc9bba /plugin
parentd04faa650562512b97bef2fb32621a532ab5922a (diff)
[vim] Remove unnecessary powershell check
&shell is guaranteed to be cmd.exe on windows because we call s:use_sh()
Diffstat (limited to 'plugin')
-rw-r--r--plugin/fzf.vim2
1 files changed, 1 insertions, 1 deletions
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