From fd22bbbb0875be68ffed7e031b564feb104459ff Mon Sep 17 00:00:00 2001 From: Drew Stokes Date: Wed, 6 Mar 2013 11:17:38 +0100 Subject: [PATCH] Disable diff colors to fix file name grep. --- plugin/gitgutter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index d6b31a5..ed4d9a4 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -103,7 +103,7 @@ endfunction " Diff processing {{{ function! s:run_diff() - let cmd = 'git diff --no-ext-diff -U0 ' . shellescape(s:current_file()) . + let cmd = 'git diff --no-ext-diff --no-color -U0 ' . shellescape(s:current_file()) . \ ' | grep -e "^@@ "' let diff = system(s:command_in_directory_of_current_file(cmd)) return diff