From 10fb874d7e1502a98b4ea02ad9307ad34a22bcdf Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 17 May 2024 13:14:29 -0400 Subject: [PATCH] Filter out bold/underline typesetting in man output Resolves: https://github.com/tpope/vim-fugitive/issues/2300 --- autoload/fugitive.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 76724e4..7545dd4 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -3925,6 +3925,9 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg, ...) abort \ 'GIT_SEQUENCE_EDITOR': editor, \ 'GIT_PAGER': 'cat', \ 'PAGER': 'cat'}, 'keep') + if s:executable('col') + let env.MANPAGER = 'col -b' + endif if len($GPG_TTY) && !has_key(env, 'GPG_TTY') let env.GPG_TTY = '' let did_override_gpg_tty = 1