mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Disable diff colors to fix file name grep.
This commit is contained in:
committed by
Andy Stewart
parent
68c12c946c
commit
fd22bbbb08
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user