tabline: only show buffer label, if they were drawn

closes #1558
This commit is contained in:
Christian Brabandt 2018-01-04 20:56:09 +01:00
parent ce83c39bed
commit d283a25e3f
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 1 additions and 1 deletions

View File

@ -88,8 +88,8 @@ function! airline#extensions#tabline#tabs#get()
let group = airline#extensions#tabline#group_of_bufnr(buffers, nr) . "_right"
call b.add_section_spaced(group, '%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)')
endfor
call airline#extensions#tabline#add_label(b, 'buffers')
endif
call airline#extensions#tabline#add_label(b, 'buffers')
let s:current_bufnr = curbuf
let s:current_tabnr = curtab