From 983193456f17a35fc6ccc2fde26b0936e0b348e3 Mon Sep 17 00:00:00 2001 From: Plamen Kolev Date: Sun, 4 Mar 2018 13:57:06 +0000 Subject: [PATCH] Ignore the arguments when testing the grep executable --- plugin/gitgutter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index 69a4dc8..3d64514 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -60,7 +60,7 @@ endif let default_grep = 'grep' call s:set('g:gitgutter_grep', default_grep) if !empty(g:gitgutter_grep) - if executable(g:gitgutter_grep) + if executable(split(g:gitgutter_grep)[0]) if $GREP_OPTIONS =~# '--color=always' let g:gitgutter_grep .= ' --color=never' endif