From a2431f2adb23a003abdfe5294861bbd69de52e52 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Thu, 29 Dec 2016 11:17:18 +0100 Subject: [PATCH] Check s:jobs dictionary before trying to remove jobid fixes #1363 --- autoload/airline/extensions/po.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/airline/extensions/po.vim b/autoload/airline/extensions/po.vim index fada471..6536436 100644 --- a/autoload/airline/extensions/po.vim +++ b/autoload/airline/extensions/po.vim @@ -27,7 +27,9 @@ if s:has_async else let b:airline_po_stats = '' endif - call remove(s:jobs, self.file) + if has_key(s:jobs, self.file) + call remove(s:jobs, self.file) + endif call s:shorten() endfunction