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)