Skip to content

Commit

Permalink
Restore commit autocmd
Browse files Browse the repository at this point in the history
Closes #505.
  • Loading branch information
tpope committed Jun 22, 2014
1 parent 018ea39 commit ffd8c0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin/fugitive.vim
Expand Up @@ -1396,6 +1396,11 @@ function! s:Wq(force,...) abort
endif
endfunction

augroup fugitive_commit
autocmd!
autocmd VimLeavePre,BufDelete COMMIT_EDITMSG execute s:sub(s:FinishCommit(), '^echoerr (.*)', 'echohl ErrorMsg|echo \1|echohl NONE')
augroup END

" Section: Gdiff

call s:command("-bang -bar -nargs=* -complete=customlist,s:EditComplete Gdiff :execute s:Diff('keepalt ',<f-args>)")
Expand Down

0 comments on commit ffd8c0a

Please sign in to comment.