Skip to content

Commit

Permalink
when autoloaded by vim's omnicomplete $0 is nil, return an empty stri…
Browse files Browse the repository at this point in the history
…ng instead to avoid "can't convert false into String (TypeError)"

closes rubygems#918
  • Loading branch information
kogent authored and indirect committed Sep 19, 2011
1 parent 298bad3 commit 74de75e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler08/commands/exec_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
combined = [File.basename($0)] + ARGV
combined = [File.basename($0 ? $0 : "")] + ARGV
gem_i = combined.index("gem")
exec_i = combined.index("exec")

Expand Down

0 comments on commit 74de75e

Please sign in to comment.