Skip to content
Browse files

when autoloaded by vim's omnicomplete $0 is nil, return an empty stri…

…ng instead to avoid "can't convert false into String (TypeError)"

closes #918
  • Loading branch information...
1 parent 298bad3 commit 74de75e68906816f373185ff55d8eacf6cfcd6e6 @kogent kogent committed with indirect Dec 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bundler08/commands/exec_command.rb
View
2 lib/bundler08/commands/exec_command.rb
@@ -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")

0 comments on commit 74de75e

Please sign in to comment.
Something went wrong with that request. Please try again.