mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 14:53:51 -05:00
Don't assume COMMIT_EDITMSG is in a .git directory
This commit is contained in:
@@ -897,7 +897,7 @@ endfunction
|
|||||||
|
|
||||||
augroup fugitive_commit
|
augroup fugitive_commit
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd VimLeavePre,BufDelete *.git/COMMIT_EDITMSG execute s:sub(s:FinishCommit(), '^echoerr (.*)', 'echohl ErrorMsg|echo \1|echohl NONE')
|
autocmd VimLeavePre,BufDelete COMMIT_EDITMSG execute s:sub(s:FinishCommit(), '^echoerr (.*)', 'echohl ErrorMsg|echo \1|echohl NONE')
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
" }}}1
|
" }}}1
|
||||||
|
|||||||
Reference in New Issue
Block a user