aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2017-11-28 21:19:33 -0500
committerJustin M. Keyes <justinkz@gmail.com>2017-11-29 03:19:33 +0100
commit2d732a11b1ef12b3a3458f45f2f170954ad3bdc6 (patch)
treeca204a970091411c4c517414f1851c7ff88768b9
parent27a4fc436f281debf17812ff0f975f7a1a6f43d3 (diff)
downloadrneovim-2d732a11b1ef12b3a3458f45f2f170954ad3bdc6.tar.gz
rneovim-2d732a11b1ef12b3a3458f45f2f170954ad3bdc6.tar.bz2
rneovim-2d732a11b1ef12b3a3458f45f2f170954ad3bdc6.zip
provider: fix batchfile extension for ruby gem (#7651)
ruby uses batchfiles with 'cmd' extension. gem creates batchfiles with 'bat' extension. `gem install rails` does the following in Windows (not Cygwin): 1. Run `gem.cmd install rails` on cmd.exe 2. gem.cmd runs `ruby.exe -x gem install rails` 3. `rails` gem is installed. `rails.bat` is created in the same directory where ruby.exe and gem.cmd reside.
-rw-r--r--runtime/autoload/provider/ruby.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/provider/ruby.vim b/runtime/autoload/provider/ruby.vim
index 518a9dc793..da73a0dfc0 100644
--- a/runtime/autoload/provider/ruby.vim
+++ b/runtime/autoload/provider/ruby.vim
@@ -19,7 +19,7 @@ function! provider#ruby#Detect() abort
if exists("g:ruby_host_prog")
return g:ruby_host_prog
else
- return has('win32') ? exepath('neovim-ruby-host.cmd') : exepath('neovim-ruby-host')
+ return has('win32') ? exepath('neovim-ruby-host.bat') : exepath('neovim-ruby-host')
end
endfunction