From 660d2ba2b60026a9069ee005562ddad6a67f9fb0 Mon Sep 17 00:00:00 2001 From: Maksim Odnoletkov Date: Fri, 20 Nov 2020 13:53:36 +0000 Subject: [PATCH] Fix jumps from blame commits with ignore marks c212d854d5c872f43e0a3f064241b086d07fbb6f added initial support for marks added by blame.markIgnoredLines and blame.markUnblamableLines. One more change is needed to parse the blame line properly to enable jumps. --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index d2a100f..ad6b137 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -5187,7 +5187,7 @@ endfunction function! s:BlameCommitFileLnum(...) abort let line = a:0 ? a:1 : getline('.') let state = a:0 ? a:2 : s:TempState() - let commit = matchstr(line, '^\^\=\zs\x\+') + let commit = matchstr(line, '^\^\=[?*]*\zs\x\+') if commit =~# '^0\+$' let commit = '' elseif has_key(state, 'blame_reverse_end')