Check s:jobs dictionary before trying to remove jobid

fixes #1363
This commit is contained in:
Christian Brabandt 2016-12-29 11:17:18 +01:00
parent e83ed24088
commit a2431f2adb

View File

@ -27,7 +27,9 @@ if s:has_async
else else
let b:airline_po_stats = '' let b:airline_po_stats = ''
endif endif
call remove(s:jobs, self.file) if has_key(s:jobs, self.file)
call remove(s:jobs, self.file)
endif
call s:shorten() call s:shorten()
endfunction endfunction