diff --git a/plugin/rhubarb.vim b/plugin/rhubarb.vim index fb59a2d..7a91a5b 100644 --- a/plugin/rhubarb.vim +++ b/plugin/rhubarb.vim @@ -163,7 +163,7 @@ endfunction augroup rhubarb autocmd! autocmd User Fugitive - \ if &filetype ==# 'gitcommit' && expand('%:t') ==# 'COMMIT_EDITMSG' && + \ if expand('%:p') =~# '\.git[\/].*MSG$' && \ exists('+omnifunc') && \ &omnifunc =~# '^\%(syntaxcomplete#Complete\)\=$' && \ join(readfile(fugitive#buffer().repo().dir('config')),"\n")