From be6e3db68b96f6a68afb2cafb00a7bcc7fb9d531 Mon Sep 17 00:00:00 2001 From: Aditya Date: Tue, 18 Oct 2016 22:23:07 -0400 Subject: [PATCH] on_exit function fix if self.file is missing --- autoload/airline/extensions/branch.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/airline/extensions/branch.vim b/autoload/airline/extensions/branch.vim index 868da964..81ac2539 100644 --- a/autoload/airline/extensions/branch.vim +++ b/autoload/airline/extensions/branch.vim @@ -127,7 +127,9 @@ if s:has_async else let s:untracked_{self.cmd}[self.file] = '' endif - call remove(s:jobs, self.file) + if has_key(s:jobs, self.file) + call remove(s:jobs, self.file) + endif endfunction function! s:get_vcs_untracked_async(cmd, file)