Restore commit autocmd

Closes #505.
This commit is contained in:
Tim Pope
2014-06-22 12:46:16 -04:00
parent 018ea3955b
commit ffd8c0ad58

View File

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