Turn off grep colour when GREP_OPTIONS switches it on.

Closes #415.
This commit is contained in:
Andy Stewart
2017-04-20 12:37:52 +01:00
parent 9ecce5a269
commit f16cf539a2

View File

@@ -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*\) @@'