mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-08 01:44:44 +08:00
Display "Press 'D'" message only when existing plugins are updated
Fix #123
This commit is contained in:
2
plug.vim
2
plug.vim
@@ -633,7 +633,7 @@ function! s:finish(pull)
|
|||||||
if !empty(s:update.errors)
|
if !empty(s:update.errors)
|
||||||
call add(msgs, "Press 'R' to retry.")
|
call add(msgs, "Press 'R' to retry.")
|
||||||
endif
|
endif
|
||||||
if a:pull && !empty(filter(getline(5, '$'),
|
if a:pull && len(s:update.new) < len(filter(getline(5, '$'),
|
||||||
\ "v:val =~ '^- ' && stridx(v:val, 'Already up-to-date') < 0"))
|
\ "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
|
||||||
|
|||||||
Reference in New Issue
Block a user