Fix cur buffer littered w/ setline aft. PlugUpdate

This commit is contained in:
AMZ 2022-09-27 02:22:44 +03:00 committed by GitHub
parent ddce935b16
commit 972b3e1e3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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