tabline: correct order of tab/buffer labels

This commit is contained in:
Christian Brabandt 2018-01-04 19:09:02 +01:00
parent 90cf752c90
commit 30652c05c4
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -42,7 +42,7 @@ function! airline#extensions#tabline#tabs#get()
let tab_nr_type = get(g:, 'airline#extensions#tabline#tab_nr_type', 0)
let b = airline#extensions#tabline#new_builder()
call airline#extensions#tabline#add_label(b, 'buffers')
call airline#extensions#tabline#add_label(b, 'tabs')
for i in range(1, tabpagenr('$'))
if i == curtab
let group = 'airline_tabsel'
@ -87,7 +87,7 @@ function! airline#extensions#tabline#tabs#get()
call b.add_section_spaced(group, '%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)')
endfor
endif
call airline#extensions#tabline#add_label(b, 'tabs')
call airline#extensions#tabline#add_label(b, 'buffers')
let s:current_bufnr = curbuf
let s:current_tabnr = curtab