From 972b3e1e3d540e032ad02be3fb0a5a7cd408de1b Mon Sep 17 00:00:00 2001 From: AMZ Date: Tue, 27 Sep 2022 02:22:44 +0300 Subject: [PATCH] Fix cur buffer littered w/ setline aft. PlugUpdate --- plug.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index 652caa8..e254b32 100644 --- a/plug.vim +++ b/plug.vim @@ -1338,7 +1338,12 @@ function! s:update_finish() return endtry call s:finish(s:update.pull) - call setline(1, 'Updated. Elapsed time: ' . split(reltimestr(reltime(s:update.start)))[0] . ' sec.') + let s:succ_line = 'Updated. Elapsed time: ' . split(reltimestr(reltime(s:update.start)))[0] . ' sec.' + if s:nvim + call call s:warn('echo', s:succ_line) + else + call setline(1, s:succ_line) + endif call s:switch_out('normal! gg') endif endfunction