fix error for when keys are not present in unite context.
This commit is contained in:
parent
660109a61a
commit
501e341589
@ -4,10 +4,10 @@
|
|||||||
function! airline#extensions#unite#apply(...)
|
function! airline#extensions#unite#apply(...)
|
||||||
if &ft == 'unite'
|
if &ft == 'unite'
|
||||||
call a:1.add_section('airline_a', ' Unite ')
|
call a:1.add_section('airline_a', ' Unite ')
|
||||||
call a:1.add_section('airline_b', ' %{unite#get_context().buffer_name} ')
|
call a:1.add_section('airline_b', ' %{get(unite#get_context(), "buffer_name", "")} ')
|
||||||
call a:1.add_section('airline_c', ' %{unite#get_status_string()} ')
|
call a:1.add_section('airline_c', ' %{unite#get_status_string()} ')
|
||||||
call a:1.split()
|
call a:1.split()
|
||||||
call a:1.add_section('airline_y', ' %{unite#get_context().real_buffer_name} ')
|
call a:1.add_section('airline_y', ' %{get(unite#get_context(), "real_buffer_name", "")} ')
|
||||||
return 1
|
return 1
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user