diff --git a/autoload/gitgutter/diff.vim b/autoload/gitgutter/diff.vim index a10e69f..2cf7acf 100644 --- a/autoload/gitgutter/diff.vim +++ b/autoload/gitgutter/diff.vim @@ -5,6 +5,9 @@ else let s:grep_available = executable('grep') if s:grep_available let s:grep_command = 'grep' + if $GREP_OPTIONS =~# '--color=always' + let s:grep_command .= ' --color=never' + endif endif endif let s:hunk_re = '^@@ -\(\d\+\),\?\(\d*\) +\(\d\+\),\?\(\d*\) @@'