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

Fix #2877
This commit is contained in:
Junegunn Choi 2022-07-20 14:29:52 +09:00
parent 821fc9feed
commit ccc4677252
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
1 changed files with 1 additions and 1 deletions

View File

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