mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 03:53:47 -05:00
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:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user