mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 02:25:35 -07:00
Fix PlugClean user prompt
This commit is contained in:
parent
e024756578
commit
2652383f97
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 New Issue
Block a user