From 67d5dc11d6ab8199397481aa89672a57340106d6 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Mon, 27 Apr 2020 14:12:33 +0100 Subject: [PATCH] Bail early if git cannot be found There is no point trying to run without git. --- plugin/gitgutter.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index b34b64a..1a24998 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -72,6 +72,7 @@ if !executable(g:gitgutter_git_executable) if g:gitgutter_enabled call gitgutter#utility#warn('cannot find git. Please set g:gitgutter_git_executable.') endif + finish endif let default_grep = 'grep'