Override color.ui=always

Closes https://github.com/tpope/vim-fugitive/issues/1217
This commit is contained in:
Tim Pope 2019-02-23 18:02:14 -05:00
parent c5d8b25c5e
commit ad32eae7e2

View File

@ -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': {}}