Trigger BufWritePost after adding to index with Gwrite

See airblade/vim-gitgutter#278.
This commit is contained in:
Andy Stewart 2016-03-23 14:27:54 +00:00 committed by Tim Pope
parent e1ae9effbc
commit 57afba5bdd

View File

@ -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]