hide tab type as per documented variable. resolves #667.

This commit is contained in:
Bailey Ling 2015-02-19 21:33:05 -05:00
parent 59752b2659
commit 618851188a

View File

@ -4,6 +4,7 @@
scriptencoding utf-8
let s:buffer_idx_mode = get(g:, 'airline#extensions#tabline#buffer_idx_mode', 0)
let s:show_tab_type = get(g:, 'airline#extensions#tabline#show_tab_type', 1)
let s:spc = g:airline_symbols.space
let s:current_bufnr = -1
@ -96,7 +97,9 @@ function! airline#extensions#tabline#buffers#get()
call b.add_section('airline_tabfill', '')
call b.split()
call b.add_section('airline_tabfill', '')
call b.add_section('airline_tabtype', ' buffers ')
if s:show_tab_type
call b.add_section('airline_tabtype', ' buffers ')
endif
let s:current_bufnr = cur
let s:current_tabline = b.build()