mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 20:24:27 +08:00
async: check dictionary keys before trying to access them
This commit is contained in:
@@ -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', {})
|
||||||
let var[a:vcs].dirty=1
|
if has_key(var, a:vcs) && has_key(var[a:vcs], 'dirty')
|
||||||
call setbufvar(fnameescape(a:file), 'buffer_vcs_config', var)
|
let var[a:vcs].dirty=1
|
||||||
unlet! b:airline_head
|
call setbufvar(fnameescape(a:file), 'buffer_vcs_config', var)
|
||||||
|
unlet! b:airline_head
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:on_exit_clean(...) dict abort
|
function! s:on_exit_clean(...) dict abort
|
||||||
|
|||||||
Reference in New Issue
Block a user