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
|
endtry
|
||||||
|
|
||||||
if readfile(s:me) ==# readfile(new)
|
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)
|
silent! call delete(new)
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
call rename(s:me, s:me . '.old')
|
call rename(s:me, s:me . '.old')
|
||||||
call rename(new, s:me)
|
call rename(new, s:me)
|
||||||
unlet g:loaded_plug
|
unlet g:loaded_plug
|
||||||
echo 'vim-plug is upgraded'
|
echo 'vim-plug has been upgraded'
|
||||||
return 1
|
return 1
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
Loading…
Reference in a new issue