show tab nr condition moved to right place
This commit is contained in:
parent
0714c35547
commit
6c79004aaa
@ -243,12 +243,12 @@ function! s:get_tabs()
|
|||||||
let group = 'airline_tab'
|
let group = 'airline_tab'
|
||||||
endif
|
endif
|
||||||
let val = '%('
|
let val = '%('
|
||||||
if s:tab_nr_type == 0
|
if s:show_tab_nr
|
||||||
let val .= ' %{len(tabpagebuflist('.i.'))}'
|
if s:tab_nr_type == 0
|
||||||
else
|
let val .= ' %{len(tabpagebuflist('.i.'))}'
|
||||||
if s:show_tab_nr
|
else
|
||||||
let val .= (g:airline_symbols.space).i
|
let val .= (g:airline_symbols.space).i
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
call b.add_section(group, val.'%'.i.'T %{airline#extensions#tabline#title('.i.')} %)')
|
call b.add_section(group, val.'%'.i.'T %{airline#extensions#tabline#title('.i.')} %)')
|
||||||
endfor
|
endfor
|
||||||
@ -264,4 +264,3 @@ function! s:get_tabs()
|
|||||||
let s:current_tabline = b.build()
|
let s:current_tabline = b.build()
|
||||||
return s:current_tabline
|
return s:current_tabline
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user