deprecate airline_detect_iminsert

This commit is contained in:
Bailey Ling 2013-08-24 22:24:36 -04:00
parent c517f9c6f9
commit b34aa78c5a
2 changed files with 1 additions and 2 deletions

View File

@ -180,7 +180,7 @@ function! airline#extensions#load()
call airline#extensions#paste#init()
endif
if g:airline_detect_iminsert
if get(g:, 'airline#extensions#iminsert#enabled', 0) || get(g:, 'airline_detect_iminsert', 0)
call airline#extensions#iminsert#init()
endif

View File

@ -16,7 +16,6 @@ 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)?"":"<")
call s:check_defined('g:airline_right_alt_sep', get(g:, 'airline_powerline_fonts', 0)?"":"<")
call s:check_defined('g:airline_detect_iminsert', 0)
call s:check_defined('g:airline_detect_modified', 1)
call s:check_defined('g:airline_detect_paste', 1)
call s:check_defined('g:airline_linecolumn_prefix', get(g:, 'airline_powerline_fonts', 0)?' ':':')