diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-04-28 16:41:16 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-04-29 01:57:09 +0200 |
commit | 51a2d8dc36b56125c81a085a773eb47671eec7f0 (patch) | |
tree | 8cf2b382f16f925545e4c5a345552b4ec5f6d794 | |
parent | 9f6d693e263b617cd1a1772e42911cd5a0b1675b (diff) | |
download | rneovim-51a2d8dc36b56125c81a085a773eb47671eec7f0.tar.gz rneovim-51a2d8dc36b56125c81a085a773eb47671eec7f0.tar.bz2 rneovim-51a2d8dc36b56125c81a085a773eb47671eec7f0.zip |
win: health.vim/check_ruby(): find `gem.cmd` #6608
gem.cmd is not found by system(['gem', ...]), pass it to cmd.exe.
-rw-r--r-- | runtime/autoload/health/provider.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/health/provider.vim b/runtime/autoload/health/provider.vim index dccff12bae..c5826217c5 100644 --- a/runtime/autoload/health/provider.vim +++ b/runtime/autoload/health/provider.vim @@ -445,7 +445,7 @@ function! s:check_ruby() abort endif call health#report_info('Host: '. host) - let latest_gem_cmd = 'gem list -ra ^neovim$' + let latest_gem_cmd = has('win32') ? 'cmd /c gem list -ra ^^neovim$' : 'gem list -ra ^neovim$' let latest_gem = s:system(split(latest_gem_cmd)) if s:shell_error || empty(latest_gem) call health#report_error('Failed to run: '. latest_gem_cmd, |