fixes a weird error after neobundle installs a new plugin.

This commit is contained in:
Bailey Ling 2013-08-28 01:34:10 +00:00
parent 14656f766b
commit eadeee316c

View File

@ -14,6 +14,12 @@ function! s:check_defined(variable, default)
endif
endfunction
let s:airline_initialized = 0
let s:airline_theme_defined = 0
function! s:init()
if !s:airline_initialized
let s:airline_initialized = 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)?"":"<")
@ -73,12 +79,6 @@ call extend(g:airline_theme_map, {
\ '.*solarized.*': 'solarized',
\ }, 'keep')
let s:airline_initialized = 0
let s:airline_theme_defined = 0
function! s:init()
if !s:airline_initialized
let s:airline_initialized = 1
call airline#extensions#load()
call s:check_defined('g:airline_section_a', (g:airline_parts.mode).(g:airline_parts.paste).(g:airline_parts.iminsert))
call s:check_defined('g:airline_section_b', (g:airline_parts.hunks).(g:airline_parts.branch))