From ecff00a559186ad595eedba349a197c8d966e528 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 19 Mar 2018 15:06:55 +0100 Subject: [PATCH] tabline: do not show buffer label if show_buffers is zero fixes #1689 --- autoload/airline/extensions/tabline/tabs.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/airline/extensions/tabline/tabs.vim b/autoload/airline/extensions/tabline/tabs.vim index 54019b5..a808fda 100644 --- a/autoload/airline/extensions/tabline/tabs.vim +++ b/autoload/airline/extensions/tabline/tabs.vim @@ -88,7 +88,9 @@ function! airline#extensions#tabline#tabs#get() let group = airline#extensions#tabline#group_of_bufnr(buffers, nr) . "_right" call b.add_section_spaced(group, '%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)') endfor - call airline#extensions#tabline#add_label(b, 'buffers') + if get(g:, 'airline#extensions#tabline#show_buffers', 1) + call airline#extensions#tabline#add_label(b, 'buffers') + endif endif let s:current_bufnr = curbuf