mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-26 23:44:30 +02:00
tabnr formmatter: fix style
This commit is contained in:
parent
98bc6abde3
commit
d372b5bc46
@ -4,11 +4,12 @@
|
|||||||
scriptencoding utf-8
|
scriptencoding utf-8
|
||||||
|
|
||||||
function! airline#extensions#tabline#formatters#tabnr#format(tab_nr_type, nr)
|
function! airline#extensions#tabline#formatters#tabnr#format(tab_nr_type, nr)
|
||||||
|
let spc=g:airline_symbols.space
|
||||||
if a:tab_nr_type == 0 " nr of splits
|
if a:tab_nr_type == 0 " nr of splits
|
||||||
return (g:airline_symbols.space).'%{len(tabpagebuflist('.a:nr.'))}'
|
return spc. '%{len(tabpagebuflist('.a:nr.'))}'
|
||||||
elseif a:tab_nr_type == 1 " tab number
|
elseif a:tab_nr_type == 1 " tab number
|
||||||
return (g:airline_symbols.space).a:nr
|
return spc. a:nr
|
||||||
else "== 2 splits and tab number
|
else "== 2 splits and tab number
|
||||||
return (g:airline_symbols.space).a:nr.'.%{len(tabpagebuflist('.a:nr.'))}'
|
return spc. a:nr. '.%{len(tabpagebuflist('.a:nr.'))}'
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user