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:
Andy Stewart
2013-03-19 09:12:21 +01:00
parent 7f1c104f9f
commit fd7fb6cd15

View File

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