improve loading performance

This commit is contained in:
Bailey Ling 2013-08-31 19:30:37 -04:00
parent f48031cde8
commit 5c0ef8ffbf
1 changed files with 3 additions and 0 deletions

View File

@ -7,7 +7,10 @@ function! s:check_defined(variable, default)
endif
endfunction
let s:loaded = 0
function! airline#init#bootstrap()
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)?"":">")
call s:check_defined('g:airline_right_sep', get(g:, 'airline_powerline_fonts', 0)?"":"<")