Fix jumps from blame commits with ignore marks

c212d854d5 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.
This commit is contained in:
Maksim Odnoletkov
2020-11-20 13:53:36 +00:00
committed by Tim Pope
parent 1a77f1c00e
commit 660d2ba2b6

View File

@@ -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')