Fix PlugClean user prompt

This commit is contained in:
Junegunn Choi 2013-09-18 12:23:43 +09:00
parent e024756578
commit 2652383f97

View file

@ -397,9 +397,9 @@ function! s:clean(force)
call append(line('$'), 'Already clean.') call append(line('$'), 'Already clean.')
else else
call inputsave() call inputsave()
let yes = a:force || input("Proceed? (Y/N) ") let yes = a:force || (input("Proceed? (Y/N) ") =~? '^y')
call inputrestore() call inputrestore()
if a:force || yes =~? '^y' if yes
for dir in todo for dir in todo
if isdirectory(dir) if isdirectory(dir)
call system((s:is_win ? 'rmdir /S /Q ' : 'rm -rf ') . dir) call system((s:is_win ? 'rmdir /S /Q ' : 'rm -rf ') . dir)