mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-10-14 00:28:56 +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:
3 files changed
+12
-10
No files matched your search
@@ -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