diff --git a/autoload/airline/async.vim b/autoload/airline/async.vim index 74c4e72d..5732077e 100644 --- a/autoload/airline/async.vim +++ b/autoload/airline/async.vim @@ -66,7 +66,8 @@ endfunction function! s:set_clean_variables(file, vcs, val) let var=getbufvar(fnameescape(a:file), 'buffer_vcs_config', {}) - if has_key(var, a:vcs) && has_key(var[a:vcs], 'dirty') + if has_key(var, a:vcs) && has_key(var[a:vcs], 'dirty') && + \ type(getbufvar(fnameescape(a:file), 'buffer_vcs_config')) == type({}) let var[a:vcs].dirty=a:val call setbufvar(fnameescape(a:file), 'buffer_vcs_config', var) unlet! b:airline_head