diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index 53c772c..a1420a6 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -28,14 +28,12 @@ func! vundle#config#init_bundle(name, opts) endf func! s:parse_options(opts) - " TODO: improve this - if len(a:opts) != 1 | return {} | endif - - if type(a:opts[0]) == type({}) + " ignore everything except first argument + " which supposed to be option hash + if len(a:opts) == 1 && type(a:opts[0]) == type({}) return a:opts[0] - else - return {'rev': a:opts[0]} endif + return {} endf func! s:parse_name(arg)