From f49bbe85980ff7bf6851f8152ed6173157f76c4f Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 13 Aug 2011 19:12:32 -0500 Subject: [PATCH] remove duplication --- autoload/vundle/installer.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 379306d..bfb241a 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -6,7 +6,7 @@ func! vundle#installer#new(bang, ...) abort let names = map(copy(bundles), 'v:val.name_spec') 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) @@ -27,7 +27,7 @@ func! s:process(bang, func_name, items) 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) @@ -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') - call s:process(a:bang, 'vundle#installer#delete', names) + call s:process(a:bang, 'delete', names) echo 'Done!' endif