aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBusyBruce <4861164+BusyBruce@users.noreply.github.com>2020-05-30 20:29:24 +0800
committerGitHub <noreply@github.com>2020-05-30 14:29:24 +0200
commit7d8dc4c331fee2527dfe499066035fa7470ad5b3 (patch)
treee71170d980796af9819917dbb88aeaa67d0bedb8
parent977c0f292fe155dbf1748d6a0ff020f89cf7a894 (diff)
downloadrneovim-7d8dc4c331fee2527dfe499066035fa7470ad5b3.tar.gz
rneovim-7d8dc4c331fee2527dfe499066035fa7470ad5b3.tar.bz2
rneovim-7d8dc4c331fee2527dfe499066035fa7470ad5b3.zip
provider: Fix ruby checkhealth error for Windows (#12400)
Plaform: Windows 10 run `cmd /c gem list -ra ^^neovim$` *** REMOTE GEMS *** minitest-neovim (0.1.0) neovim (0.7.1, 0.7.0, 0.6.2, 0.6.1, 0.6.0, 0.5.1, 0.5.0, 0.4.0, 0.3.3, 0.3.2, 0.3.1, 0.3.0, 0.2.5, 0.2.4, 0.2.3, 0.2.2, 0.2.1, 0.2.0, 0.1.0, 0.0.6, 0.0.5, 0.0.4, 0.0.3, 0.0.2, 0.0.1) run `cmd /c gem list -ra "^^neovim$"` *** REMOTE GEMS *** neovim (0.7.1, 0.7.0, 0.6.2, 0.6.1, 0.6.0, 0.5.1, 0.5.0, 0.4.0, 0.3.3, 0.3.2, 0.3.1, 0.3.0, 0.2.5, 0.2.4, 0.2.3, 0.2.2, 0.2.1, 0.2.0, 0.1.0, 0.0.6, 0.0.5, 0.0.4, 0.0.3, 0.0.2, 0.0.1)
-rw-r--r--runtime/autoload/health/provider.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/health/provider.vim b/runtime/autoload/health/provider.vim
index 6d481e9f49..4975dc66b8 100644
--- a/runtime/autoload/health/provider.vim
+++ b/runtime/autoload/health/provider.vim
@@ -581,7 +581,7 @@ function! s:check_ruby() abort
endif
call health#report_info('Host: '. host)
- let latest_gem_cmd = has('win32') ? 'cmd /c gem list -ra ^^neovim$' : '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,