checkhealth/ruby: fix off-by-one error #12245

Co-authored-by: BodongLiKolmostar <bodong.li@kolmostar.com>
This commit is contained in:
Booome 2020-05-05 10:58:45 +08:00 committed by GitHub
parent d46c4003cf
commit ebee77e73c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)