mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
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:
committed by
Tim Pope
parent
1a77f1c00e
commit
660d2ba2b6
@@ -5187,7 +5187,7 @@ endfunction
|
|||||||
function! s:BlameCommitFileLnum(...) abort
|
function! s:BlameCommitFileLnum(...) abort
|
||||||
let line = a:0 ? a:1 : getline('.')
|
let line = a:0 ? a:1 : getline('.')
|
||||||
let state = a:0 ? a:2 : s:TempState()
|
let state = a:0 ? a:2 : s:TempState()
|
||||||
let commit = matchstr(line, '^\^\=\zs\x\+')
|
let commit = matchstr(line, '^\^\=[?*]*\zs\x\+')
|
||||||
if commit =~# '^0\+$'
|
if commit =~# '^0\+$'
|
||||||
let commit = ''
|
let commit = ''
|
||||||
elseif has_key(state, 'blame_reverse_end')
|
elseif has_key(state, 'blame_reverse_end')
|
||||||
|
|||||||
Reference in New Issue
Block a user