From 5b4e238ad9d47dce5d209add59f786bafd1e8eed Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 23 Jul 2011 15:39:02 -0500 Subject: [PATCH] Bundle cmd may have 2 arguments only - uri/name [revision] - option_hash ie: Bundle 'gmarik/vundle master', {'rtp':'test/'} --- autoload/vundle/config.vim | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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)