Browse Source

give BundleClean prompt a default value of 'y'

Also save/restore input so potential mappings aren't broken.
pull/107/head
Randy Morris 14 years ago
parent
commit
5adaa6b3c4
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      autoload/vundle/installer.vim

+ 8
- 1
autoload/vundle/installer.vim View File

@ -139,8 +139,15 @@ func! vundle#installer#clean(bang) abort
call vundle#scripts#view('clean', headers, names)
redraw
if (a:bang || empty(names) || input('Continue? [y/n]: ') =~? 'y')
if (a:bang || empty(names))
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
endf


Loading…
Cancel
Save