Fix cur buffer littered w/ setline aft. PlugUpdate
This commit is contained in:
parent
ddce935b16
commit
e1796d9f1f
9
plug.vim
9
plug.vim
|
@ -1338,7 +1338,12 @@ function! s:update_finish()
|
||||||
return
|
return
|
||||||
endtry
|
endtry
|
||||||
call s:finish(s:update.pull)
|
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 s:warn('echo', s:succ_line)
|
||||||
|
else
|
||||||
|
call setline(1, s:succ_line)
|
||||||
|
endif
|
||||||
call s:switch_out('normal! gg')
|
call s:switch_out('normal! gg')
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -1397,7 +1402,7 @@ function! s:job_cb(fn, job, ch, data)
|
||||||
if !s:plug_window_exists() " plug window closed
|
if !s:plug_window_exists() " plug window closed
|
||||||
return s:job_abort()
|
return s:job_abort()
|
||||||
endif
|
endif
|
||||||
call call(a:fn, [a:job, a:data])
|
call(a:fn, [a:job, a:data])
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:nvim_cb(job_id, data, event) dict abort
|
function! s:nvim_cb(job_id, data, event) dict abort
|
||||||
|
|
Loading…
Reference in New Issue
Block a user