Fix :Gbrowse with range and blame.coloring enabled
This commit is contained in:
parent
dffa56c4ea
commit
35cf80dd3b
@ -4843,7 +4843,7 @@ function! s:BrowseCommand(line1, line2, range, count, bang, mods, reg, arg, args
|
|||||||
call writefile([commit, ''], blame_list, 'b')
|
call writefile([commit, ''], blame_list, 'b')
|
||||||
let blame_in = tempname()
|
let blame_in = tempname()
|
||||||
silent exe '%write' blame_in
|
silent exe '%write' blame_in
|
||||||
let [blame, exec_error] = s:LinesError(['blame', '--contents', blame_in, '-L', a:line1.','.a:count, '-S', blame_list, '-s', '--show-number', './' . path])
|
let [blame, exec_error] = s:LinesError(['-c', 'blame.coloring=none', 'blame', '--contents', blame_in, '-L', a:line1.','.a:count, '-S', blame_list, '-s', '--show-number', './' . path])
|
||||||
if !exec_error
|
if !exec_error
|
||||||
let blame_regex = '^\^\x\+\s\+\zs\d\+\ze\s'
|
let blame_regex = '^\^\x\+\s\+\zs\d\+\ze\s'
|
||||||
if get(blame, 0) =~# blame_regex && get(blame, -1) =~# blame_regex
|
if get(blame, 0) =~# blame_regex && get(blame, -1) =~# blame_regex
|
||||||
|
Loading…
Reference in New Issue
Block a user