From 6c79004aaa61de1ecc630b6433cbda400df3af87 Mon Sep 17 00:00:00 2001 From: zdm Date: Sun, 22 Dec 2013 05:32:06 +0200 Subject: [PATCH] show tab nr condition moved to right place --- autoload/airline/extensions/tabline.vim | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/autoload/airline/extensions/tabline.vim b/autoload/airline/extensions/tabline.vim index 7915424..0294e87 100644 --- a/autoload/airline/extensions/tabline.vim +++ b/autoload/airline/extensions/tabline.vim @@ -243,12 +243,12 @@ function! s:get_tabs() let group = 'airline_tab' endif let val = '%(' - if s:tab_nr_type == 0 - let val .= ' %{len(tabpagebuflist('.i.'))}' - else - if s:show_tab_nr - let val .= (g:airline_symbols.space).i - endif + if s:show_tab_nr + if s:tab_nr_type == 0 + let val .= ' %{len(tabpagebuflist('.i.'))}' + else + let val .= (g:airline_symbols.space).i + endif endif call b.add_section(group, val.'%'.i.'T %{airline#extensions#tabline#title('.i.')} %)') endfor @@ -264,4 +264,3 @@ function! s:get_tabs() let s:current_tabline = b.build() return s:current_tabline endfunction -