mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-08-13 03:11:04 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user