[vim] fzf#exec: Shell-escape fzf binary path

Fix #2877
pull/2885/head
Junegunn Choi 2 years ago
parent 821fc9feed
commit ccc4677252
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -164,7 +164,7 @@ function s:get_version(bin)
if has_key(s:versions, a:bin)
return s:versions[a:bin]
end
let command = a:bin . ' --version --no-height'
let command = fzf#shellescape(a:bin) . ' --version --no-height'
let output = systemlist(command)
if v:shell_error || empty(output)
return ''

Loading…
Cancel
Save