From 57afba5bdd49b59d57485f90aa0cf3f3a6c47f63 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Wed, 23 Mar 2016 14:27:54 +0000 Subject: [PATCH] Trigger BufWritePost after adding to index with Gwrite See airblade/vim-gitgutter#278. --- plugin/fugitive.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 44b249a..b2f7785 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1568,6 +1568,7 @@ function! s:Write(force,...) abort unlet! restorewinnr let zero = s:repo().translate(':0:'.path) + silent execute 'doautocmd BufWritePost' s:fnameescape(zero) for tab in range(1,tabpagenr('$')) for winnr in range(1,tabpagewinnr(tab,'$')) let bufnr = tabpagebuflist(tab)[winnr-1]