Display "Press 'D'" message only when existing plugins are updated

Fix #123
This commit is contained in:
Junegunn Choi 2014-11-24 03:32:01 +09:00
parent 12bc2ea1da
commit 68ad02c5c3

View File

@ -633,7 +633,7 @@ function! s:finish(pull)
if !empty(s:update.errors)
call add(msgs, "Press 'R' to retry.")
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"))
call add(msgs, "Press 'D' to see the updated changes.")
endif