mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-09 21:46:39 +08:00
Merge pull request #1358 from chrisbra/1329
Add tab indicator for tabline when buffers are shown
This commit is contained in:
@@ -97,6 +97,9 @@ function! airline#extensions#tabline#buffers#get()
|
||||
if s:show_tab_type
|
||||
call b.add_section_spaced('airline_tabtype', s:buffers_label)
|
||||
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_tabline = b.build()
|
||||
|
||||
Reference in New Issue
Block a user