Skip to content

Commit

Permalink
Wipeout temporary buffer created when writing file to diff.
Browse files Browse the repository at this point in the history
This avoids creating a ton of dead buffers that slow down plugins that
iterate over all buffers, such as YouCompleteMe.
  • Loading branch information
RedBeard0531 authored and airblade committed Jul 28, 2015
1 parent 2e98692 commit fe10e64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autoload/gitgutter/diff.vim
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function! gitgutter#diff#run_diff(realtime, use_external_grep)
if a:realtime
call delete(blob_file)
call delete(buff_file)
execute 'keepalt silent bwipeout' buff_file
endif

if gitgutter#utility#shell_error()
Expand Down

0 comments on commit fe10e64

Please sign in to comment.