Skip to content

Commit

Permalink
Update when file modified externally.
Browse files Browse the repository at this point in the history
  • Loading branch information
airblade committed Aug 7, 2013
1 parent ff031d0 commit 1511325
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/gitgutter.vim
Original file line number Diff line number Diff line change
Expand Up @@ -537,13 +537,13 @@ endif
augroup gitgutter
autocmd!
if g:gitgutter_eager
autocmd BufEnter,BufWritePost,FileWritePost * call GitGutter(s:current_file())
autocmd BufEnter,BufWritePost,FileWritePost,FileChangedShellPost * call GitGutter(s:current_file())
autocmd TabEnter * call GitGutterAll()
if !has('gui_win32')
autocmd FocusGained * call GitGutterAll()
endif
else
autocmd BufReadPost,BufWritePost,FileReadPost,FileWritePost * call GitGutter(s:current_file())
autocmd BufReadPost,BufWritePost,FileReadPost,FileWritePost,FileChangedShellPost * call GitGutter(s:current_file())
endif
autocmd ColorScheme * call s:define_sign_column_highlight() | call s:define_highlights()
augroup END
Expand Down

0 comments on commit 1511325

Please sign in to comment.