[vim] Fix version check on Windows when shellslash is set

pull/3046/head
Junegunn Choi 2 years ago
parent 168829b555
commit 0de1aacb0c
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 = (&shell =~ 'powershell' ? '&' : '') . shellescape(a:bin) . ' --version --no-height'
let command = (&shell =~ 'powershell' ? '&' : '') . s:fzf_call('shellescape', a:bin) . ' --version --no-height'
let output = systemlist(command)
if v:shell_error || empty(output)
return ''

Loading…
Cancel
Save