parent
1eeeb41f3f
commit
30038b82a4
@ -1506,8 +1506,8 @@ function! s:BlameJump(suffix) abort
|
|||||||
if commit =~# '^0\+$'
|
if commit =~# '^0\+$'
|
||||||
let commit = ':0'
|
let commit = ':0'
|
||||||
endif
|
endif
|
||||||
let lnum = matchstr(getline('.'),'\d\+\ze\s\+[([:digit:]]')
|
let lnum = matchstr(getline('.'),' \zs\d\+\ze\s\+[([:digit:]]')
|
||||||
let path = matchstr(getline('.'),'^\^\=\zs\x\+\s\+\zs.\{-\}\ze\s*\d\+ ')
|
let path = matchstr(getline('.'),'^\^\=\x\+\s\+\zs.\{-\}\ze\s*\d\+ ')
|
||||||
if path ==# ''
|
if path ==# ''
|
||||||
let path = s:buffer(b:fugitive_blamed_bufnr).path()
|
let path = s:buffer(b:fugitive_blamed_bufnr).path()
|
||||||
endif
|
endif
|
||||||
@ -1519,6 +1519,7 @@ function! s:BlameJump(suffix) abort
|
|||||||
exe winnr.'wincmd w'
|
exe winnr.'wincmd w'
|
||||||
endif
|
endif
|
||||||
execute s:Edit('edit', 0, commit.a:suffix.':'.path)
|
execute s:Edit('edit', 0, commit.a:suffix.':'.path)
|
||||||
|
execute lnum
|
||||||
if winnr > 0
|
if winnr > 0
|
||||||
exe bufnr.'bdelete'
|
exe bufnr.'bdelete'
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user