Finish pending commit even if exiting Vim

This commit is contained in:
Tim Pope 2010-03-11 22:14:38 -05:00
parent b812cb3bcd
commit 6b55a997a9

View File

@ -728,7 +728,7 @@ endfunction
augroup fugitive_commit augroup fugitive_commit
autocmd! autocmd!
autocmd BufDelete *.git/COMMIT_EDITMSG execute s:sub(s:FinishCommit(), '^echoerr (.*)', 'echohl ErrorMsg|echo \1|echohl NONE') autocmd VimLeavePre,BufDelete *.git/COMMIT_EDITMSG execute s:sub(s:FinishCommit(), '^echoerr (.*)', 'echohl ErrorMsg|echo \1|echohl NONE')
augroup END augroup END
" }}}1 " }}}1