This commit is contained in:
gmarik 2011-11-06 17:13:03 -06:00
commit 88b8120afa
2 changed files with 9 additions and 2 deletions

View File

@ -139,8 +139,15 @@ func! vundle#installer#clean(bang) abort
call vundle#scripts#view('clean', headers, names) call vundle#scripts#view('clean', headers, names)
redraw redraw
if (a:bang || empty(names) || input('Continue ? [ y/n ]:') =~? 'y') if (a:bang || empty(names))
call s:process(a:bang, 'D') call s:process(a:bang, 'D')
else
call inputsave()
let response = input('Continue? [Y/n]: ')
call inputrestore()
if (response =~? 'y' || response == '')
call s:process(a:bang, 'D')
endif
endif endif
endf endf

View File

@ -97,7 +97,7 @@ func! vundle#scripts#view(title, headers, results)
nnoremap <buffer> c :BundleClean<CR> nnoremap <buffer> c :BundleClean<CR>
nnoremap <buffer> C :BundleClean!<CR> nnoremap <buffer> C :BundleClean!<CR>
nnoremap <buffer> s :BundleSearch nnoremap <buffer> s :BundleSearch
nnoremap <buffer> R :call vundle#scripts#reload()<CR> nnoremap <buffer> R :call vundle#scripts#reload()<CR>
" goto first line after headers " goto first line after headers