commit 7df9f07e1fd53d560f2e352d5faa3eba92cd1582 (tree)
parent fb3c603ce6bfbba9efe311a147cb5ce61b0f9b0a
Author: Tim Pope <code@tpope.net>
Date: Thu, 1 Aug 2019 12:33:49 -0400
Compensate for blame.coloring
Closes https://github.com/tpope/vim-fugitive/issues/1301
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -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