Skip to content

Commit

Permalink
Revert "Use correct filename in auto commands."
Browse files Browse the repository at this point in the history
That commit prevented gitgutter correctly activating on its first run.

This reverts commit 25d428c.
  • Loading branch information
airblade committed Apr 15, 2013
1 parent 25d428c commit b63d3c6
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 @@ -533,9 +533,9 @@ endfunction
augroup gitgutter
autocmd!
if g:gitgutter_on_bufenter
autocmd BufEnter,BufWritePost,FileWritePost * call GitGutter(expand('<afile>'))
autocmd BufEnter,BufWritePost,FileWritePost * call GitGutter(s:current_file())
else
autocmd BufReadPost,BufWritePost,FileReadPost,FileWritePost * call GitGutter(expand('<afile>'))
autocmd BufReadPost,BufWritePost,FileReadPost,FileWritePost * call GitGutter(s:current_file())
endif
if g:gitgutter_all_on_focusgained
if !has('gui_win32')
Expand Down

0 comments on commit b63d3c6

Please sign in to comment.