Fix branch argument

This commit is contained in:
Junegunn Choi 2013-09-25 12:41:49 +09:00
parent 2cf0c4fda5
commit 8ee3a0b36d

View file

@ -107,7 +107,7 @@ function! s:add(...)
if a:0 == 2
let [plugin, branch] = [a:2, 'master']
elseif a:0 == 3
let [plugin, branch] = a:000
let [plugin, branch] = [a:2, a:3]
else
echoerr "Invalid number of arguments (1..2)"
return