mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 10:35:38 -07:00
Silence :delete commands
Add :silence to all :delete commands to avoid filling up the message history with "1 line less" messages, in case 'report' is set to 0.
This commit is contained in:
parent
e15598fe45
commit
9df0580eff
6
plug.vim
6
plug.vim
@ -1048,14 +1048,14 @@ function! s:update_finish()
|
|||||||
if v:shell_error
|
if v:shell_error
|
||||||
call add(s:update.errors, name)
|
call add(s:update.errors, name)
|
||||||
call s:regress_bar()
|
call s:regress_bar()
|
||||||
execute pos 'd _'
|
silent execute pos 'd _'
|
||||||
call append(4, msg) | 4
|
call append(4, msg) | 4
|
||||||
elseif !empty(out)
|
elseif !empty(out)
|
||||||
call setline(pos, msg)
|
call setline(pos, msg)
|
||||||
endif
|
endif
|
||||||
redraw
|
redraw
|
||||||
endfor
|
endfor
|
||||||
4 d _
|
silent 4 d _
|
||||||
call s:do(s:update.pull, s:update.force, filter(copy(s:update.all), 'index(s:update.errors, v:key) < 0 && has_key(v:val, "do")'))
|
call s:do(s:update.pull, s:update.force, filter(copy(s:update.all), 'index(s:update.errors, v:key) < 0 && has_key(v:val, "do")'))
|
||||||
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.')
|
call setline(1, 'Updated. Elapsed time: ' . split(reltimestr(reltime(s:update.start)))[0] . ' sec.')
|
||||||
@ -1172,7 +1172,7 @@ function! s:log(bullet, name, lines)
|
|||||||
if s:switch_in()
|
if s:switch_in()
|
||||||
let pos = s:logpos(a:name)
|
let pos = s:logpos(a:name)
|
||||||
if pos > 0
|
if pos > 0
|
||||||
execute pos 'd _'
|
silent execute pos 'd _'
|
||||||
if pos > winheight('.')
|
if pos > winheight('.')
|
||||||
let pos = 4
|
let pos = 4
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user