mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Force grep to produce colourless output.
This commit is contained in:
@@ -310,7 +310,6 @@ Here are some things you can check:
|
||||
* Your Vim supports signs (`:echo has('signs')` should give `1`).
|
||||
* Your file is being tracked by git and has unstaged, saved changes.
|
||||
* If you use the Fish shell, or another non-POSIX shell, add `set shell=/bin/bash` to your `~/.vimrc`.
|
||||
* Make sure your grep produces colourless output, e.g. with `export GREP_OPTIONS='--color=auto'`.
|
||||
|
||||
|
||||
### Shameless Plug
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
let s:grep_available = executable('grep')
|
||||
let s:grep_command = ' | '.(g:gitgutter_escape_grep ? '\grep' : 'grep').' -e '.gitgutter#utility#shellescape('^@@ ')
|
||||
let s:grep_command = ' | '.(g:gitgutter_escape_grep ? '\grep' : 'grep').' --color=never -e '.gitgutter#utility#shellescape('^@@ ')
|
||||
let s:hunk_re = '^@@ -\(\d\+\),\?\(\d*\) +\(\d\+\),\?\(\d*\) @@'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user