From d372b5bc4629b0d03304d73d4e4b96ce0a58dfbf Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Sat, 2 Feb 2019 17:45:33 +0100 Subject: [PATCH] tabnr formmatter: fix style --- autoload/airline/extensions/tabline/formatters/tabnr.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/autoload/airline/extensions/tabline/formatters/tabnr.vim b/autoload/airline/extensions/tabline/formatters/tabnr.vim index fa710148..5f31ef24 100644 --- a/autoload/airline/extensions/tabline/formatters/tabnr.vim +++ b/autoload/airline/extensions/tabline/formatters/tabnr.vim @@ -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