mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-23 20:45:31 -07:00
Merge pull request #152 from michamos/patch-1
Clarify messages after 'PlugUpgrade'
This commit is contained in:
commit
1c61517164
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 New Issue
Block a user