Permalink
Browse files

Broaden commit message editing recognition

  • Loading branch information...
1 parent d4c3994 commit 5ba1ce58b1f7c749e736eb987233e3ac08133d4f @tpope committed Apr 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/rhubarb.vim
View
@@ -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")

0 comments on commit 5ba1ce5

Please sign in to comment.