From 0de1aacb0cea3a559e07b84e922eb2aea61b8c96 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 31 Oct 2022 00:25:37 +0900 Subject: [PATCH] [vim] Fix version check on Windows when shellslash is set --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 40f01a0e..ca2dbaa4 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -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 ''