mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 18:47:29 -07:00
Fix branch argument
This commit is contained in:
parent
2cf0c4fda5
commit
8ee3a0b36d
2
plug.vim
2
plug.vim
@ -107,7 +107,7 @@ function! s:add(...)
|
|||||||
if a:0 == 2
|
if a:0 == 2
|
||||||
let [plugin, branch] = [a:2, 'master']
|
let [plugin, branch] = [a:2, 'master']
|
||||||
elseif a:0 == 3
|
elseif a:0 == 3
|
||||||
let [plugin, branch] = a:000
|
let [plugin, branch] = [a:2, a:3]
|
||||||
else
|
else
|
||||||
echoerr "Invalid number of arguments (1..2)"
|
echoerr "Invalid number of arguments (1..2)"
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user