From 62cfae461f5159749de4b9dfa9254e52cc9e0008 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Wed, 21 Oct 2015 09:24:49 +0100 Subject: [PATCH] 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. --- autoload/gitgutter/diff.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/gitgutter/diff.vim b/autoload/gitgutter/diff.vim index 56bcd9e..52d0725 100644 --- a/autoload/gitgutter/diff.vim +++ b/autoload/gitgutter/diff.vim @@ -82,7 +82,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 + execute 'keepalt silent! bwipeout' buff_file endif if gitgutter#utility#shell_error()