From 68ad02c5c3777764ef296c5b13ff35e4ca3e6d52 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 24 Nov 2014 03:32:01 +0900 Subject: [PATCH] Display "Press 'D'" message only when existing plugins are updated Fix #123 --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index b488bb4..3732574 100644 --- a/plug.vim +++ b/plug.vim @@ -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