tabline: add [buffers]/[tabs] labels consistently

previously, when both tabs and buffers were displayed in the tabline, it
was not immediately obvious which side belongs to a buffer and which one
to a tab. Therefore, add [buffers]/[tabs] labels consistently.
This commit is contained in:
Christian Brabandt
2018-01-04 18:34:48 +01:00
parent 45878a7947
commit 3985ece131
3 changed files with 12 additions and 10 deletions
@@ -98,8 +98,8 @@ function! airline#extensions#tabline#buffers#get()
call b.split()
call b.add_section('airline_tabfill', '')
if get(g:, 'airline#extensions#tabline#show_tab_type', 1)
call b.add_section_spaced('airline_tabtype',
\ get(g:, 'airline#extensions#tabline#buffers_label', 'buffers'))
call b.add_section_spaced('airline_tab',
\ get(g:, 'airline#extensions#tabline#buffers_label', '[buffers]'))
endif
if tabpagenr('$') > 1