From 64a445bb5313dc8927d6f813ea25fb3265b25f28 Mon Sep 17 00:00:00 2001 From: __ <__@an> Date: Thu, 20 Oct 2016 17:37:11 +0200 Subject: [PATCH] Vim: explicitly check for job support. --- autoload/gitgutter/async.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/autoload/gitgutter/async.vim b/autoload/gitgutter/async.vim index d776ce0..0ce70b8 100644 --- a/autoload/gitgutter/async.vim +++ b/autoload/gitgutter/async.vim @@ -10,9 +10,11 @@ let s:jobs = {} " MacVim-GUI didn't support async until 7.4.1832 (actually commit " 88f4fe0 but 7.4.1832 was the first subsequent patch release). let s:available = has('nvim') || ( - \ (has('patch-7-4-1826') && !has('gui_running')) || - \ (has('patch-7-4-1850') && has('gui_running')) || - \ (has('patch-7-4-1832') && has('gui_macvim')) + \ has('job') && ( + \ (has('patch-7-4-1826') && !has('gui_running')) || + \ (has('patch-7-4-1850') && has('gui_running')) || + \ (has('patch-7-4-1832') && has('gui_macvim')) + \ ) \ ) function! gitgutter#async#available()