From ad25925f1ec8790a3b0532c367c40470342d73fb Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Thu, 19 Apr 2018 13:03:45 +0100 Subject: [PATCH] Add missing condition to determine whether running async. See #505. --- plugin/gitgutter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index c2aaf2a..53eb44c 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -80,7 +80,7 @@ call gitgutter#highlight#define_signs() " - executing a job in the foreground launches a new window which takes the focus; " - when the job finishes, focus returns to gvim; " - the FocusGained event triggers a new job (see below). -if gitgutter#utility#windows() && !gitgutter#async#available() +if gitgutter#utility#windows() && !(g:gitgutter_async && gitgutter#async#available()) set noshelltemp endif