diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2022-07-30 19:07:39 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2022-07-30 19:08:04 +0900 |
commit | e5d8cbd383ffb0c272c654cab8a3f40385d094f4 (patch) | |
tree | e5da10c422c7acc648be2eadd3d9ee960b5db2ac /plugin | |
parent | 3c08dca7e74513f38563b6f399cdc54e4ed0e451 (diff) |
[vim] Fix version check on windows/powershell (addendum)
Should handle powershell.exe as well
Fix https://github.com/junegunn/fzf.vim/issues/1411
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/fzf.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 6fada6cd..4dd7ece8 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' ? '&' : '') . shellescape(a:bin) . ' --version --no-height' let output = systemlist(command) if v:shell_error || empty(output) return '' |