Prevent infinite loop when running non-async on Windows.

Closes #505.
This commit is contained in:
Andy Stewart
2018-04-11 09:56:43 +01:00
parent 3724e1c207
commit 5481318fc1
2 changed files with 11 additions and 3 deletions

View File

@@ -76,6 +76,14 @@ call gitgutter#highlight#define_sign_column_highlight()
call gitgutter#highlight#define_highlights()
call gitgutter#highlight#define_signs()
" Prevent infinite loop where:
" - 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()
set noshelltemp
endif
" }}}
" Primary functions {{{