Merge pull request #152 from michamos/patch-1

Clarify messages after 'PlugUpgrade'
This commit is contained in:
Junegunn Choi 2015-01-26 18:50:51 +09:00
commit 1c61517164

View File

@ -1311,14 +1311,14 @@ function! s:upgrade()
endtry
if readfile(s:me) ==# readfile(new)
echo 'vim-plug is up-to-date'
echo 'vim-plug is already up-to-date'
silent! call delete(new)
return 0
else
call rename(s:me, s:me . '.old')
call rename(new, s:me)
unlet g:loaded_plug
echo 'vim-plug is upgraded'
echo 'vim-plug has been upgraded'
return 1
endif
endfunction