mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 12:03:48 -05:00
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:
committed by
Andy Stewart
parent
2e98692278
commit
fe10e6474d
@@ -75,6 +75,7 @@ function! gitgutter#diff#run_diff(realtime, use_external_grep)
|
|||||||
if a:realtime
|
if a:realtime
|
||||||
call delete(blob_file)
|
call delete(blob_file)
|
||||||
call delete(buff_file)
|
call delete(buff_file)
|
||||||
|
execute 'keepalt silent bwipeout' buff_file
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if gitgutter#utility#shell_error()
|
if gitgutter#utility#shell_error()
|
||||||
|
|||||||
Reference in New Issue
Block a user