Skip to content

Commit

Permalink
Only use Ruby interface to determine path on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Jan 22, 2007
1 parent 7836af4 commit fefcbb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
2006-12-13 Mark Guzman <segfault@hasno.info>
2007-01-22 Tim Pope <vim@tpope.info>

* ftplugin/ruby.vim: Limited path detection code to Windows, again.

2006-12-13 Mark Guzman <segfault@hasno.info>

* autoload/rubycomplete.vim: added support for lambda and '&' defined
procs.
Expand Down
2 changes: 1 addition & 1 deletion ftplugin/ruby.vim
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ setlocal comments=:#
setlocal commentstring=#\ %s

if !exists("s:rubypath")
if has("ruby")
if has("ruby") && has("win32")
ruby VIM::command( 'let s:rubypath = "%s"' % ($: + begin; require %q{rubygems}; Gem.all_load_paths.sort.uniq; rescue LoadError; []; end).join(%q{,}) )
let s:rubypath = '.,' . substitute(s:rubypath, '\%(^\|,\)\.\%(,\|$\)', ',,', '')
elseif executable("ruby")
Expand Down

0 comments on commit fefcbb6

Please sign in to comment.