mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-09 10:24:44 +08:00
Echo "Press 'D'" message only on PlugUpdate
This commit is contained in:
6
plug.vim
6
plug.vim
@@ -326,7 +326,7 @@ function! s:assign_name()
|
|||||||
silent! execute "f ".fnameescape(name)
|
silent! execute "f ".fnameescape(name)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:finish()
|
function! s:finish(pull)
|
||||||
call append(3, '- Finishing ... ')
|
call append(3, '- Finishing ... ')
|
||||||
redraw
|
redraw
|
||||||
call s:apply()
|
call s:apply()
|
||||||
@@ -334,7 +334,9 @@ function! s:finish()
|
|||||||
call setline(4, getline(4) . 'Done!')
|
call setline(4, getline(4) . 'Done!')
|
||||||
normal! gg
|
normal! gg
|
||||||
redraw
|
redraw
|
||||||
|
if a:pull
|
||||||
echo "Press 'D' to see the updated changes."
|
echo "Press 'D' to see the updated changes."
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:update_impl(pull, args)
|
function! s:update_impl(pull, args)
|
||||||
@@ -351,7 +353,7 @@ function! s:update_impl(pull, args)
|
|||||||
else
|
else
|
||||||
call s:update_serial(a:pull)
|
call s:update_serial(a:pull)
|
||||||
endif
|
endif
|
||||||
call s:finish()
|
call s:finish(a:pull)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:extend(names)
|
function! s:extend(names)
|
||||||
|
|||||||
Reference in New Issue
Block a user