diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 241a05a..5d64bcf 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1773,7 +1773,7 @@ function! s:BufReadObject() if b:fugitive_display_format call s:ReplaceCmd(s:repo().git_command('ls-tree',hash)) else - call s:ReplaceCmd(s:repo().git_command('show',hash)) + call s:ReplaceCmd(s:repo().git_command('show','--no-color',hash)) endif elseif b:fugitive_type == 'tag' let b:fugitive_display_format = b:fugitive_display_format % 2 @@ -1787,7 +1787,7 @@ function! s:BufReadObject() if b:fugitive_display_format call s:ReplaceCmd(s:repo().git_command('cat-file',b:fugitive_type,hash)) else - call s:ReplaceCmd(s:repo().git_command('show','--pretty=format:tree %T%nparent %P%nauthor %an <%ae> %ad%ncommitter %cn <%ce> %cd%nencoding %e%n%n%s%n%n%b',hash)) + call s:ReplaceCmd(s:repo().git_command('show','--no-color','--pretty=format:tree %T%nparent %P%nauthor %an <%ae> %ad%ncommitter %cn <%ce> %cd%nencoding %e%n%n%s%n%n%b',hash)) call search('^parent ') if getline('.') ==# 'parent ' silent delete_