[vim] Remove unnecessary powershell check

&shell is guaranteed to be cmd.exe on windows because we call s:use_sh()
This commit is contained in:
Junegunn Choi 2022-10-13 14:48:32 +09:00
parent d04faa6505
commit f9d53303bb
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
1 changed files with 1 additions and 1 deletions

View File

@ -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