motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit b0e38f08dca7dc33664705253e63cb92b3592e99 (tree)
parent 4cc201cbe3a0c3faa4cde1b82ba941d410e5e81c
Author: Diego Vera <omar.vera@gmail.com>
Date:   Sat, 16 May 2015 14:27:44 +0200

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

Diffstat:
Mplugin/fugitive.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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()