summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Carey <dj_mook@hotmail.com>2010-12-28 15:13:25 -0800
committerAndre Arko <andre@arko.net>2011-09-19 14:57:16 -0700
commit74de75e68906816f373185ff55d8eacf6cfcd6e6 (patch)
treea70cfd53cf512bbd77f3e4edf7e6f7ccf12383ce
parent298bad3aa0cfb4ac76536dc57b70cdbaad64f1d5 (diff)
downloadbundler-0-8-stable.tar.gz
when autoloaded by vim's omnicomplete $0 is nil, return an empty string instead to avoid "can't convert false into String (TypeError)"0-8-stable
closes #918
-rw-r--r--lib/bundler08/commands/exec_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler08/commands/exec_command.rb b/lib/bundler08/commands/exec_command.rb
index 5ee1862b6d..1a3fac2836 100644
--- a/lib/bundler08/commands/exec_command.rb
+++ b/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")