summaryrefslogtreecommitdiffstats
path: root/plugin/fzf.vim
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2022-10-31 00:25:37 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2022-10-31 10:57:05 +0900
commit0de1aacb0cea3a559e07b84e922eb2aea61b8c96 (patch)
tree70f15ae097e3ab8967f0665383a749c0b93d3d94 /plugin/fzf.vim
parent168829b5550336886a426073670153f84f8a34b2 (diff)
[vim] Fix version check on Windows when shellslash is set
Diffstat (limited to 'plugin/fzf.vim')
-rw-r--r--plugin/fzf.vim2
1 files changed, 1 insertions, 1 deletions
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 ''