From fd7fb6cd15fb38976d38639057c9e134c583ae95 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Tue, 19 Mar 2013 09:12:21 +0100 Subject: [PATCH] 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. --- plugin/gitgutter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index f138a5f..81a85e6 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -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