Broaden commit message editing recognition

This commit is contained in:
Tim Pope
2012-04-06 20:16:21 -04:00
parent d4c3994cbb
commit 5ba1ce58b1

View File

@@ -101,7 +101,7 @@ endfunction
augroup rhubarb
autocmd!
autocmd User Fugitive
\ if fugitive#buffer().path() =~# '^\.git.COMMIT_EDITMSG$' &&
\ if &filetype ==# 'gitcommit' && expand('%:t') ==# 'COMMIT_EDITMSG' &&
\ exists('+omnifunc') &&
\ &omnifunc =~# '^\%(syntaxcomplete#Complete\)\=$' &&
\ join(readfile(fugitive#buffer().repo().dir('config')),"\n")