Skip to content

Commit

Permalink
Merge pull request #508 from mhinz/silence-deletions
Browse files Browse the repository at this point in the history
Silence :delete commands
  • Loading branch information
junegunn authored Aug 1, 2016
2 parents e15598f + 9df0580 commit b44ea68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1048,14 +1048,14 @@ function! s:update_finish()
if v:shell_error
call add(s:update.errors, name)
call s:regress_bar()
execute pos 'd _'
silent execute pos 'd _'
call append(4, msg) | 4
elseif !empty(out)
call setline(pos, msg)
endif
redraw
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:finish(s:update.pull)
call setline(1, 'Updated. Elapsed time: ' . split(reltimestr(reltime(s:update.start)))[0] . ' sec.')
Expand Down Expand Up @@ -1172,7 +1172,7 @@ function! s:log(bullet, name, lines)
if s:switch_in()
let pos = s:logpos(a:name)
if pos > 0
execute pos 'd _'
silent execute pos 'd _'
if pos > winheight('.')
let pos = 4
endif
Expand Down

0 comments on commit b44ea68

Please sign in to comment.