Fix PlugClean user prompt
This commit is contained in:
parent
e024756578
commit
2652383f97
1 changed files with 2 additions and 2 deletions
4
plug.vim
4
plug.vim
|
@ -397,9 +397,9 @@ function! s:clean(force)
|
|||
call append(line('$'), 'Already clean.')
|
||||
else
|
||||
call inputsave()
|
||||
let yes = a:force || input("Proceed? (Y/N) ")
|
||||
let yes = a:force || (input("Proceed? (Y/N) ") =~? '^y')
|
||||
call inputrestore()
|
||||
if a:force || yes =~? '^y'
|
||||
if yes
|
||||
for dir in todo
|
||||
if isdirectory(dir)
|
||||
call system((s:is_win ? 'rmdir /S /Q ' : 'rm -rf ') . dir)
|
||||
|
|
Loading…
Reference in a new issue