diff --git a/autoload/airline/async.vim b/autoload/airline/async.vim index 6223712..6b673d1 100644 --- a/autoload/airline/async.vim +++ b/autoload/airline/async.vim @@ -69,10 +69,11 @@ function! s:set_clean_variables(file, vcs, val) 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 - if bufexists(a:file) + try call setbufvar(fnameescape(a:file), 'buffer_vcs_config', var) unlet! b:airline_head - endif + catch + endtry endif endfunction