From 618851188a4d763d351b69443c52f0b8d54489bd Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Thu, 19 Feb 2015 21:33:05 -0500 Subject: [PATCH] hide tab type as per documented variable. resolves #667. --- autoload/airline/extensions/tabline/buffers.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoload/airline/extensions/tabline/buffers.vim b/autoload/airline/extensions/tabline/buffers.vim index 5bbf99e..31ebdb6 100644 --- a/autoload/airline/extensions/tabline/buffers.vim +++ b/autoload/airline/extensions/tabline/buffers.vim @@ -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()