mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 18:47:29 -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.')
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user