From b0e38f08dca7dc33664705253e63cb92b3592e99 Mon Sep 17 00:00:00 2001
From: Diego Vera <omar.vera@gmail.com>
Date: Sat, 16 May 2015 14:27:44 +0200
Subject: [PATCH] Make Ggrep to work properly on Mac

- Color were causing to appear strange characters in the result.
- These characters made impossible to navigate the results
- The solution was to disable colors while executing git grep
---
 plugin/fugitive.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
index 70451ebb..75cfe20b 100644
--- a/plugin/fugitive.vim
+++ b/plugin/fugitive.vim
@@ -1239,7 +1239,7 @@ function! s:Grep(cmd,bang,arg) abort
   let dir = getcwd()
   try
     execute cd.'`=s:repo().tree()`'
-    let &grepprg = s:repo().git_command('--no-pager', 'grep', '-n')
+    let &grepprg = s:repo().git_command('--no-pager', 'grep', '-n', '--no-color')
     let &grepformat = '%f:%l:%m'
     exe a:cmd.'! '.escape(matchstr(a:arg,'\v\C.{-}%($|[''" ]\@=\|)@='),'|')
     let list = a:cmd =~# '^l' ? getloclist(0) : getqflist()
-- 
GitLab