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

Fix #2992
pull/3004/head
Junegunn Choi 2 years ago
parent 07da058eae
commit d04faa6505
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

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

Loading…
Cancel
Save