From ebee77e73c2977e8b13e0b8c98ad65840bfa2eb3 Mon Sep 17 00:00:00 2001 From: Booome <604772159@qq.com> Date: Tue, 5 May 2020 10:58:45 +0800 Subject: [PATCH] checkhealth/ruby: fix off-by-one error #12245 Co-authored-by: BodongLiKolmostar --- runtime/autoload/health/provider.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/autoload/health/provider.vim b/runtime/autoload/health/provider.vim index 86f9f060ff..6d481e9f49 100644 --- a/runtime/autoload/health/provider.vim +++ b/runtime/autoload/health/provider.vim @@ -589,7 +589,7 @@ function! s:check_ruby() abort \ 'Are you behind a firewall or proxy?']) return endif - let latest_gem = get(split(latest_gem, 'neovim (\|, \|)$' ), 1, 'not found') + let latest_gem = get(split(latest_gem, 'neovim (\|, \|)$' ), 0, 'not found') let current_gem_cmd = host .' --version' let current_gem = s:system(current_gem_cmd)