mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
runtime: Fix issue with Ruby health latest_gem
determination
Sometimes the `gem list` command used for finding the latest version of the `neovim` gem prints an error, which can throw off the `split()` call due to extra parenthesis. This locks down the split pattern to make conflicts less likely.
This commit is contained in:
parent
e8aa58934e
commit
826210a465
@ -460,7 +460,7 @@ function! s:check_ruby() abort
|
||||
\ 'Are you behind a firewall or proxy?'])
|
||||
return
|
||||
endif
|
||||
let latest_gem = get(split(latest_gem, ' (\|, \|)$' ), 1, 'not found')
|
||||
let latest_gem = get(split(latest_gem, 'neovim (\|, \|)$' ), 1, 'not found')
|
||||
|
||||
let current_gem_cmd = host .' --version'
|
||||
let current_gem = s:system(current_gem_cmd)
|
||||
|
Loading…
Reference in New Issue
Block a user