Compensate for blame.coloring

Closes https://github.com/tpope/vim-fugitive/issues/1301
This commit is contained in:
Tim Pope
2019-08-01 12:33:49 -04:00
parent fb3c603ce6
commit 7df9f07e1f

View File

@@ -4360,7 +4360,7 @@ function! s:BlameCommand(line1, line2, range, count, bang, mods, reg, arg, args)
elseif filter(copy(a:args),'v:val !~# "^\\%(--abbrev=\\d*\\|--relative-date\\|--first-parent\\|--root\\|--show-name\\|-\\%([ltfnsew]\\|[MC]\\d*\\)\\+\\)$"') != []
call s:throw('unsupported option')
endif
let cmd = ['--no-pager', 'blame', '--show-number']
let cmd = ['--no-pager', '-c', 'blame.coloring=none', 'blame', '--show-number']
if a:count > 0
let cmd += ['-L', (a:line1 ? a:line1 : line('.')) . ',' . (a:line1 ? a:line1 : line('.'))]
endif