mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-11 04:53:46 -05:00
Remove detection of if grep supports --color
Reverts feature introduced in commit d59ac0394a
If you know your system's grep command does not support color, please use:
let g:gitgutter_grep_command = 'grep -e'
This commit is contained in:
@@ -4,12 +4,7 @@ if exists('g:gitgutter_grep_command')
|
|||||||
else
|
else
|
||||||
let s:grep_available = executable('grep')
|
let s:grep_available = executable('grep')
|
||||||
if s:grep_available
|
if s:grep_available
|
||||||
let s:grep_command = 'grep'
|
let s:grep_command = 'grep --color=never -e'
|
||||||
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'
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
let s:hunk_re = '^@@ -\(\d\+\),\?\(\d*\) +\(\d\+\),\?\(\d*\) @@'
|
let s:hunk_re = '^@@ -\(\d\+\),\?\(\d*\) +\(\d\+\),\?\(\d*\) @@'
|
||||||
|
|||||||
Reference in New Issue
Block a user