Browse Source

CHANGED: parses passed options and adds the corresponding item to dictionary

pull/267/head
Timo Sand 13 years ago
parent
commit
3c61f0349f
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      autoload/vundle/config.vim

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

@ -33,11 +33,13 @@ endf
func! s:parse_options(opts)
" TODO: improve this
if len(a:opts) != 1 | return {} | endif
if type(a:opts[0]) == type({})
return a:opts[0]
else
return {'rev': a:opts[0]}
let foo = split(a:opts[0], ':')
let type = foo[0]
let name = foo[1]
return {type : name}
endif
endf


Loading…
Cancel
Save