diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index b25a6a2..cd36a39 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -7478,7 +7478,7 @@ function! s:cfile() abort if getline('.') =~# '^ref: ' let ref = strpart(getline('.'),5) - elseif getline('.') =~# '^commit \x\{40,\}\>' + elseif getline('.') =~# '^\%([|/\\_ ]*\*[|/\\_ ]*\)\=commit \x\{40,\}\>' let ref = matchstr(getline('.'),'\x\{40,\}') return [ref]