diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2022-10-13 14:48:32 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2022-10-13 14:48:32 +0900 |
| commit | f9d53303bb00225edb6e46ca1851e5cf1b55e623 (patch) | |
| tree | 3822eebcbc56b8eafa43ad2e1bf2dd676bbc9bba /plugin | |
| parent | d04faa650562512b97bef2fb32621a532ab5922a (diff) | |
| download | fzf-f9d53303bb00225edb6e46ca1851e5cf1b55e623.tar.gz | |
[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.vim | 2 |
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 |
