diff options
author | Alex Genco <alexgenco@gmail.com> | 2017-06-03 17:14:35 -0700 |
---|---|---|
committer | Alex Genco <alexgenco@gmail.com> | 2017-06-17 08:20:00 -0700 |
commit | 826210a465f1b8bae2c6bc70ca73d610897d954c (patch) | |
tree | a931e5be68a8c4a636ebd34a2fb48bc607a1b21d | |
parent | e8aa58934ea2a670b9c2702c783611fd0c5beb4d (diff) | |
download | rneovim-826210a465f1b8bae2c6bc70ca73d610897d954c.tar.gz rneovim-826210a465f1b8bae2c6bc70ca73d610897d954c.tar.bz2 rneovim-826210a465f1b8bae2c6bc70ca73d610897d954c.zip |
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.
-rw-r--r-- | runtime/autoload/health/provider.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/health/provider.vim b/runtime/autoload/health/provider.vim index 6183182b73..31a235a397 100644 --- a/runtime/autoload/health/provider.vim +++ b/runtime/autoload/health/provider.vim @@ -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) |