diff --git a/autoload/airline/init.vim b/autoload/airline/init.vim index 52486a3..0871a23 100644 --- a/autoload/airline/init.vim +++ b/autoload/airline/init.vim @@ -9,7 +9,10 @@ endfunction let s:loaded = 0 function! airline#init#bootstrap() - if s:loaded | return | endif | let s:loaded = 1 + if s:loaded + return + endif + let s:loaded = 1 call s:check_defined('g:airline_left_sep', get(g:, 'airline_powerline_fonts', 0)?"":">") call s:check_defined('g:airline_left_alt_sep', get(g:, 'airline_powerline_fonts', 0)?"":">") diff --git a/t/init.vim b/t/init.vim index e88396e..9891c2d 100644 --- a/t/init.vim +++ b/t/init.vim @@ -42,7 +42,7 @@ describe 'init' it 'section z should be line numbers' Expect g:airline_section_z =~ '%3p%%' - Expect g:airline_section_z =~ '%3l' + Expect g:airline_section_z =~ '%4l' Expect g:airline_section_z =~ '%3c' end