diff --git a/autoload/airline/extensions/unite.vim b/autoload/airline/extensions/unite.vim index 6ea42e1..217309c 100644 --- a/autoload/airline/extensions/unite.vim +++ b/autoload/airline/extensions/unite.vim @@ -4,10 +4,10 @@ function! airline#extensions#unite#apply(...) if &ft == '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.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 endif endfunction