Add tab indicator for tabline when buffers are shown

closes #1329
This commit is contained in:
Christian Brabandt 2016-12-16 23:42:58 +01:00
parent 73a1238205
commit 706cee277a

View File

@ -97,6 +97,9 @@ function! airline#extensions#tabline#buffers#get()
if s:show_tab_type if s:show_tab_type
call b.add_section_spaced('airline_tabtype', s:buffers_label) call b.add_section_spaced('airline_tabtype', s:buffers_label)
endif endif
if tabpagenr('$') > 1
call b.add_section_spaced('airline_tabmod', printf('%s %d/%d', "tab", tabpagenr(), tabpagenr('$')))
endif
let s:current_bufnr = cur let s:current_bufnr = cur
let s:current_tabline = b.build() let s:current_tabline = b.build()