mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Fix bug where GitGutter wasn't called on buffer write.
This affected people with the default configuration but not those where `BufEnter` was turned off. This problem was introduced by the last commit.
This commit is contained in:
@@ -508,7 +508,7 @@ endfunction
|
||||
augroup gitgutter
|
||||
autocmd!
|
||||
if g:gitgutter_on_bufenter
|
||||
autocmd BufEnter * call GitGutter(s:current_file())
|
||||
autocmd BufEnter,BufWritePost,FileWritePost * call GitGutter(s:current_file())
|
||||
else
|
||||
autocmd BufReadPost,BufWritePost,FileReadPost,FileWritePost * call GitGutter(s:current_file())
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user