From e884a0e26dcce8d86c95c13fb3305fe065815eaf Mon Sep 17 00:00:00 2001 From: Dan Church Date: Fri, 15 Jan 2016 10:30:47 -0600 Subject: [PATCH] Remove detection of if grep supports --color Reverts feature introduced in commit d59ac0394aa30753ab4c4350a9c43b3fda14bbb5 If you know your system's grep command does not support color, please use: let g:gitgutter_grep_command = 'grep -e' --- autoload/gitgutter/diff.vim | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/autoload/gitgutter/diff.vim b/autoload/gitgutter/diff.vim index cd42ef4..6ebf688 100644 --- a/autoload/gitgutter/diff.vim +++ b/autoload/gitgutter/diff.vim @@ -4,12 +4,7 @@ if exists('g:gitgutter_grep_command') else let s:grep_available = executable('grep') if s:grep_available - let s:grep_command = 'grep' - let s:grep_help = gitgutter#utility#system('grep --help') - if s:grep_help =~# '--color' - let s:grep_command .= ' --color=never' - endif - let s:grep_command .= ' -e' + let s:grep_command = 'grep --color=never -e' endif endif let s:hunk_re = '^@@ -\(\d\+\),\?\(\d*\) +\(\d\+\),\?\(\d*\) @@'