Trigger BufWritePost after adding to index with Gwrite
See airblade/vim-gitgutter#278.
This commit is contained in:
parent
e1ae9effbc
commit
57afba5bdd
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user