From 11b824a0ee65e458c2bb49cd1a0697c1494ac460 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 24 Mar 2021 09:37:35 -0400 Subject: [PATCH] Forcefully disable colors on paginated :Git output References https://github.com/tpope/vim-fugitive/discussions/1711 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index b08c98d..1a97fb5 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2716,7 +2716,7 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort return 'silent checktime' . after elseif pager is# 1 let pre = s:BuildEnvPrefix(env) - silent! execute '!' . escape(pre . s:UserCommand(state, ['--no-pager'] + args), '!#%') . + silent! execute '!' . escape(pre . s:UserCommand({'git': git, 'dir': dir}, s:disable_colors + flags + ['--no-pager'] + args), '!#%') . \ (&shell =~# 'csh' ? ' >& ' . s:shellesc(state.file) : ' > ' . s:shellesc(state.file) . ' 2>&1') redraw! call s:RunSave(state)