From 2652383f978bd6bf53bd16b2ed3a5d34debc48fc Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 18 Sep 2013 12:23:43 +0900 Subject: [PATCH] Fix PlugClean user prompt --- plug.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plug.vim b/plug.vim index 32d9eea..b68bf04 100644 --- a/plug.vim +++ b/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)