From b7cf1ca65a1400d89f42e70d69a305eb05bc180d Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 15 Apr 2014 02:00:39 +0900 Subject: [PATCH] Echo "Press 'D'" message only on PlugUpdate --- plug.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plug.vim b/plug.vim index 40e6218..dea9aee 100644 --- a/plug.vim +++ b/plug.vim @@ -326,7 +326,7 @@ function! s:assign_name() silent! execute "f ".fnameescape(name) endfunction -function! s:finish() +function! s:finish(pull) call append(3, '- Finishing ... ') redraw call s:apply() @@ -334,7 +334,9 @@ function! s:finish() call setline(4, getline(4) . 'Done!') normal! gg redraw - echo "Press 'D' to see the updated changes." + if a:pull + echo "Press 'D' to see the updated changes." + endif endfunction function! s:update_impl(pull, args) @@ -351,7 +353,7 @@ function! s:update_impl(pull, args) else call s:update_serial(a:pull) endif - call s:finish() + call s:finish(a:pull) endfunction function! s:extend(names)