Browse Source

Bundle cmd may have 2 arguments only

- uri/name [revision]
- option_hash

ie:

    Bundle 'gmarik/vundle   master', {'rtp':'test/'}
v
gmarik 13 years ago
parent
commit
5b4e238ad9
1 changed files with 4 additions and 6 deletions
  1. +4
    -6
      autoload/vundle/config.vim

+ 4
- 6
autoload/vundle/config.vim View File

@ -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)


|||||||
x
 
000:0
Loading…
Cancel
Save