mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 03:53:47 -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
|
augroup gitgutter
|
||||||
autocmd!
|
autocmd!
|
||||||
if g:gitgutter_on_bufenter
|
if g:gitgutter_on_bufenter
|
||||||
autocmd BufEnter * call GitGutter(s:current_file())
|
autocmd BufEnter,BufWritePost,FileWritePost * call GitGutter(s:current_file())
|
||||||
else
|
else
|
||||||
autocmd BufReadPost,BufWritePost,FileReadPost,FileWritePost * call GitGutter(s:current_file())
|
autocmd BufReadPost,BufWritePost,FileReadPost,FileWritePost * call GitGutter(s:current_file())
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user