extract all plugin related functionality out of the core

This commit is contained in:
Bailey Ling
2013-08-06 03:34:45 +00:00
parent 98f3d13705
commit ac211a58eb
5 changed files with 39 additions and 33 deletions

View File

@@ -104,7 +104,7 @@ function! s:get_statusline(winnr, active)
return sl
endfunction
function! s:exec_funcrefs(list, break_early)
function! airline#exec_funcrefs(list, break_early)
" for 7.2; we cannot iterate list, hence why we use range()
" for 7.3-[97, 328]; we cannot reuse the variable, hence the {}
for i in range(0, len(a:list) - 1)
@@ -121,7 +121,7 @@ function! s:exec_funcrefs(list, break_early)
endfunction
function! airline#update_statusline()
if s:exec_funcrefs(g:airline_exclude_funcrefs, 1)
if airline#exec_funcrefs(g:airline_exclude_funcrefs, 1)
call setwinvar(winnr(), '&statusline', '')
return
endif
@@ -130,7 +130,7 @@ function! airline#update_statusline()
for section in s:sections
unlet! w:airline_section_{section}
endfor
call s:exec_funcrefs(g:airline_statusline_funcrefs, 0)
call airline#exec_funcrefs(g:airline_statusline_funcrefs, 0)
let w:airline_active = 1
call setwinvar(winnr(), '&statusline', s:get_statusline(winnr(), 1))