Clarify messages after 'PlugUpgrade'
This commit is contained in:
parent
166426718e
commit
061b326b37
1 changed files with 2 additions and 2 deletions
4
plug.vim
4
plug.vim
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue