diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2017-11-28 21:19:33 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-11-29 03:19:33 +0100 |
commit | 2d732a11b1ef12b3a3458f45f2f170954ad3bdc6 (patch) | |
tree | ca204a970091411c4c517414f1851c7ff88768b9 | |
parent | 27a4fc436f281debf17812ff0f975f7a1a6f43d3 (diff) | |
download | rneovim-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.vim | 2 |
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 |