From 5ba1ce58b1f7c749e736eb987233e3ac08133d4f Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 6 Apr 2012 20:16:21 -0400 Subject: [PATCH] Broaden commit message editing recognition --- plugin/rhubarb.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/rhubarb.vim b/plugin/rhubarb.vim index d8abb7f..1e0591b 100644 --- a/plugin/rhubarb.vim +++ b/plugin/rhubarb.vim @@ -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")