async: check dictionary keys before trying to access them
This commit is contained in:
parent
8169aa25af
commit
2db882e9b8
@ -66,9 +66,11 @@ endfunction
|
|||||||
|
|
||||||
function! s:set_clean_variables(file, vcs)
|
function! s:set_clean_variables(file, vcs)
|
||||||
let var=getbufvar(fnameescape(a:file), 'buffer_vcs_config', {})
|
let var=getbufvar(fnameescape(a:file), 'buffer_vcs_config', {})
|
||||||
|
if has_key(var, a:vcs) && has_key(var[a:vcs], 'dirty')
|
||||||
let var[a:vcs].dirty=1
|
let var[a:vcs].dirty=1
|
||||||
call setbufvar(fnameescape(a:file), 'buffer_vcs_config', var)
|
call setbufvar(fnameescape(a:file), 'buffer_vcs_config', var)
|
||||||
unlet! b:airline_head
|
unlet! b:airline_head
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:on_exit_clean(...) dict abort
|
function! s:on_exit_clean(...) dict abort
|
||||||
|
Loading…
x
Reference in New Issue
Block a user