tabnr formmatter: fix style

This commit is contained in:
Christian Brabandt 2019-02-02 17:45:33 +01:00
parent 98bc6abde3
commit d372b5bc46
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 4 additions and 3 deletions

View File

@ -4,11 +4,12 @@
scriptencoding utf-8
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
return (g:airline_symbols.space).'%{len(tabpagebuflist('.a:nr.'))}'
return spc. '%{len(tabpagebuflist('.a:nr.'))}'
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
return (g:airline_symbols.space).a:nr.'.%{len(tabpagebuflist('.a:nr.'))}'
return spc. a:nr. '.%{len(tabpagebuflist('.a:nr.'))}'
endif
endfunction