From ad32eae7e2e85463c8613acdcedf86e8641c5899 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 23 Feb 2019 18:02:14 -0500 Subject: [PATCH] Override color.ui=always Closes https://github.com/tpope/vim-fugitive/issues/1217 --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index f687177..9e03c7c 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1513,8 +1513,8 @@ function! fugitive#BufReadStatus() abort endif let b:fugitive_diff = { - \ 'Staged': split(system(fugitive#Prepare('diff', '--no-ext-diff', '--no-prefix', '--cached')), "\n"), - \ 'Unstaged': split(system(fugitive#Prepare('diff', '--no-ext-diff', '--no-prefix')), "\n")} + \ 'Staged': split(system(fugitive#Prepare('diff', '--color=never', '--no-ext-diff', '--no-prefix', '--cached')), "\n"), + \ 'Unstaged': split(system(fugitive#Prepare('diff', '--color=never', '--no-ext-diff', '--no-prefix')), "\n")} let expanded = get(b:, 'fugitive_expanded', {'Staged': {}, 'Unstaged': {}}) let b:fugitive_expanded = {'Staged': {}, 'Unstaged': {}}