From 1adcfc5154bbbea1a3ea1bd8151e38ae373892b5 Mon Sep 17 00:00:00 2001 From: gmarik Date: Thu, 11 Aug 2011 23:58:53 -0500 Subject: [PATCH] fix BundleClean --- autoload/vundle/installer.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 288bb5b..88318c1 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -96,12 +96,13 @@ func! vundle#installer#clean(bang) abort return end - call vundle#scripts#view('clean', ['"Remove those bundles?'], map(copy(x_dirs), 'fnamemodify(v:val, ":t")')) + let names = map(copy(x_dirs), 'fnamemodify(v:val, ":t")') + call vundle#scripts#view('clean', ['"Remove those bundles?'], names) redraw! - if (a:bang || input('Are you sure you want to remove '.len(x_dirs).' 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', x_dirs) + call s:process(a:bang, 'vundle#installer#delete', names) echo 'Done!' endif