mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 20:24:27 +08:00
@@ -69,8 +69,10 @@ function! s:set_clean_variables(file, vcs, val)
|
|||||||
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({})
|
\ type(getbufvar(fnameescape(a:file), 'buffer_vcs_config')) == type({})
|
||||||
let var[a:vcs].dirty=a:val
|
let var[a:vcs].dirty=a:val
|
||||||
call setbufvar(fnameescape(a:file), 'buffer_vcs_config', var)
|
if bufexists(a:file)
|
||||||
unlet! b:airline_head
|
call setbufvar(fnameescape(a:file), 'buffer_vcs_config', var)
|
||||||
|
unlet! b:airline_head
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user