mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 03:53:47 -05:00
Ignore the arguments when testing the grep executable
This commit is contained in:
committed by
Andy Stewart
parent
5db4a3a2a5
commit
983193456f
@@ -60,7 +60,7 @@ endif
|
|||||||
let default_grep = 'grep'
|
let default_grep = 'grep'
|
||||||
call s:set('g:gitgutter_grep', default_grep)
|
call s:set('g:gitgutter_grep', default_grep)
|
||||||
if !empty(g:gitgutter_grep)
|
if !empty(g:gitgutter_grep)
|
||||||
if executable(g:gitgutter_grep)
|
if executable(split(g:gitgutter_grep)[0])
|
||||||
if $GREP_OPTIONS =~# '--color=always'
|
if $GREP_OPTIONS =~# '--color=always'
|
||||||
let g:gitgutter_grep .= ' --color=never'
|
let g:gitgutter_grep .= ' --color=never'
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user