From 3772a98b3a2f4e7440d0924e923aca7187234e7b Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Fri, 18 Jul 2014 23:33:26 +0200 Subject: [PATCH] Update omnicomplete autocmd checks - drops file type constraint - update file name checks to match COMMIT_EDITMSG, PULLREQ_EDITMSG, MERGE_MSG, SQUASH_MSG and TAG_EDITMSG Closes #5 --- plugin/rhubarb.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")