mirror of
https://github.com/neovim/neovim.git
synced 2025-10-22 17:11:49 +00: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:
@@ -460,7 +460,7 @@ function! s:check_ruby() abort
|
|||||||
\ 'Are you behind a firewall or proxy?'])
|
\ 'Are you behind a firewall or proxy?'])
|
||||||
return
|
return
|
||||||
endif
|
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_cmd = host .' --version'
|
||||||
let current_gem = s:system(current_gem_cmd)
|
let current_gem = s:system(current_gem_cmd)
|
||||||
|
Reference in New Issue
Block a user