[vim] Fix escaping of fzf binary path containing spaces on Windows

Fix #2992
This commit is contained in:
Junegunn Choi 2022-10-12 20:07:58 +09:00
parent 07da058eae
commit d04faa6505
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

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 = fzf#shellescape(fzf#exec())
let fzf_exec = (&shell =~ 'powershell' ? '&' : '') . shellescape(fzf#exec())
catch
throw v:exception
endtry