commit ad32eae7e2e85463c8613acdcedf86e8641c5899 (tree)
parent c5d8b25c5e530f1e33d9ac67acd8f1091ca11f96
Author: Tim Pope <code@tpope.net>
Date: Sat, 23 Feb 2019 18:02:14 -0500
Override color.ui=always
Closes https://github.com/tpope/vim-fugitive/issues/1217
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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': {}}