commit 660d2ba2b60026a9069ee005562ddad6a67f9fb0 (tree)
parent 1a77f1c00e12e8460f39098ec3289c5433d32512
Author: Maksim Odnoletkov <odnoletkov@mail.ru>
Date: Fri, 20 Nov 2020 13:53:36 +0000
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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')