Merge pull request #408 from starcraftman/fix_interactive

Interactive mode restored. Fixes issue #407.
This commit is contained in:
Jeremy Pallats/starcraft.man 2014-03-21 19:11:22 -04:00
commit eb5ae19ad6

View File

@ -101,7 +101,13 @@ func! vundle#installer#install(bang, name) abort
if !isdirectory(g:bundle_dir) | call mkdir(g:bundle_dir, 'p') | endif if !isdirectory(g:bundle_dir) | call mkdir(g:bundle_dir, 'p') | endif
let n = substitute(a:name,"['".'"]\+','','g') let n = substitute(a:name,"['".'"]\+','','g')
let b = filter(copy(g:bundles), 'v:val.name_spec == n')[0] let matched = filter(copy(g:bundles), 'v:val.name_spec == n')
if len(matched) > 0
let b = matched[0]
else
let b = vundle#config#init_bundle(a:name, {})
endif
return s:sync(a:bang, b) return s:sync(a:bang, b)
endf endf