Suppress any errors from wiping out buffers.

The buffers being wiped out are temporary ones used to hold the contents
of a "real", unsaved buffer.  Ideally vim wouldn't create them at all;
and in fact it seems sometimes vim does not create them (#258).

It would be good to find why the buffers are usually there but sometimes
not.  In the meantime this change works around the problem.
This commit is contained in:
Andy Stewart
2015-10-21 09:24:49 +01:00
parent a30ee7f23e
commit 62cfae461f

View File

@@ -82,7 +82,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 execute 'keepalt silent! bwipeout' buff_file
endif endif
if gitgutter#utility#shell_error() if gitgutter#utility#shell_error()