aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/ruby.vim
diff options
context:
space:
mode:
authorChristian Clason <christian.clason@uni-due.de>2021-09-10 08:48:27 +0200
committerGitHub <noreply@github.com>2021-09-10 08:48:27 +0200
commit8f0c843c130a2117610e7892a8c1ca0887a54a6f (patch)
tree9b94e9cabd126de4b036057a4a3256ebff48879d /runtime/ftplugin/ruby.vim
parenta422f2136a001921fb54e7b83b6d00e6d5f42a4a (diff)
downloadrneovim-8f0c843c130a2117610e7892a8c1ca0887a54a6f.tar.gz
rneovim-8f0c843c130a2117610e7892a8c1ca0887a54a6f.tar.bz2
rneovim-8f0c843c130a2117610e7892a8c1ca0887a54a6f.zip
vim-patch:4d8f476176ea (#15612)
* vim-patch:4d8f476176ea Update runtime files https://github.com/vim/vim/commit/4d8f476176eadfc745bcb8e143460029048f858d skip nsis/README.txt skip doc/vim9.txt skip src/nvim/po/it.po
Diffstat (limited to 'runtime/ftplugin/ruby.vim')
-rw-r--r--runtime/ftplugin/ruby.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ftplugin/ruby.vim b/runtime/ftplugin/ruby.vim
index b4a8eaa0d8..4a476fd8cf 100644
--- a/runtime/ftplugin/ruby.vim
+++ b/runtime/ftplugin/ruby.vim
@@ -3,7 +3,7 @@
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
" URL: https://github.com/vim-ruby/vim-ruby
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
-" Last Change: 2019 Nov 06
+" Last Change: 2020 Feb 13
if (exists("b:did_ftplugin"))
finish
@@ -112,7 +112,7 @@ else
if !exists('g:ruby_default_path')
if has("ruby") && has("win32")
ruby ::VIM::command( 'let g:ruby_default_path = split("%s",",")' % $:.join(%q{,}) )
- elseif executable('ruby')
+ elseif executable('ruby') && !empty($HOME)
let g:ruby_default_path = s:query_path($HOME)
else
let g:ruby_default_path = map(split($RUBYLIB,':'), 'v:val ==# "." ? "" : v:val')