Wipeout temporary buffer created when writing file to diff.

This avoids creating a ton of dead buffers that slow down plugins that
iterate over all buffers, such as YouCompleteMe.
This commit is contained in:
Mathias Stearn
2015-07-28 10:41:19 +02:00
committed by Andy Stewart
parent 2e98692278
commit fe10e6474d

View File

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