mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -05:00
Forcefully disable colors on paginated :Git output
References https://github.com/tpope/vim-fugitive/discussions/1711
This commit is contained in:
@@ -2716,7 +2716,7 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort
|
|||||||
return 'silent checktime' . after
|
return 'silent checktime' . after
|
||||||
elseif pager is# 1
|
elseif pager is# 1
|
||||||
let pre = s:BuildEnvPrefix(env)
|
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')
|
\ (&shell =~# 'csh' ? ' >& ' . s:shellesc(state.file) : ' > ' . s:shellesc(state.file) . ' 2>&1')
|
||||||
redraw!
|
redraw!
|
||||||
call s:RunSave(state)
|
call s:RunSave(state)
|
||||||
|
|||||||
Reference in New Issue
Block a user