mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-08 18:04:46 +08:00
Do not print 'D'-message when there was no update (#66)
This commit assumes that the git pull command prints 'Already up-to-date' when the repository is up-to-date. Let's just hope that it doesn't change in the future.
This commit is contained in:
3
plug.vim
3
plug.vim
@@ -558,7 +558,8 @@ function! s:finish(pull)
|
|||||||
if !empty(s:prev_update.errors)
|
if !empty(s:prev_update.errors)
|
||||||
call add(msgs, "Press 'R' to retry.")
|
call add(msgs, "Press 'R' to retry.")
|
||||||
endif
|
endif
|
||||||
if a:pull
|
if a:pull && !empty(filter(getline(5, '$'),
|
||||||
|
\ "v:val =~ '^- ' && stridx(v:val, 'Already up-to-date') < 0"))
|
||||||
call add(msgs, "Press 'D' to see the updated changes.")
|
call add(msgs, "Press 'D' to see the updated changes.")
|
||||||
endif
|
endif
|
||||||
echo join(msgs, ' ')
|
echo join(msgs, ' ')
|
||||||
|
|||||||
Reference in New Issue
Block a user