remove duplication

This commit is contained in:
gmarik 2011-08-13 19:12:32 -05:00
parent 03981c75ab
commit f49bbe8598

View File

@ -6,7 +6,7 @@ func! vundle#installer#new(bang, ...) abort
let names = map(copy(bundles), 'v:val.name_spec') let names = map(copy(bundles), 'v:val.name_spec')
call vundle#scripts#view('Installer',['" Installing'], names) call vundle#scripts#view('Installer',['" Installing'], names)
call s:process(a:bang, 'vundle#installer#install', names) call s:process(a:bang, 'install', names)
call vundle#config#require(bundles) call vundle#config#require(bundles)
@ -27,7 +27,7 @@ func! s:process(bang, func_name, items)
sleep 1m sleep 1m
let status = call(a:func_name, [a:bang, n]) let status = call('vundle#installer#'.a:func_name, [a:bang, n])
call s:sign(status) call s:sign(status)
@ -102,7 +102,7 @@ func! vundle#installer#clean(bang) abort
if (a:bang || input('Are you sure you want to remove '.len(names).' bundles? [ y/n ]:') =~? 'y') if (a:bang || input('Are you sure you want to remove '.len(names).' bundles? [ y/n ]:') =~? 'y')
call s:process(a:bang, 'vundle#installer#delete', names) call s:process(a:bang, 'delete', names)
echo 'Done!' echo 'Done!'
endif endif