fix whitespace toggle command (#177).

This commit is contained in:
Bailey Ling 2013-08-23 16:42:55 +00:00
parent ab59dfffe7
commit 95a46cc106

View File

@ -70,10 +70,10 @@ function! airline#extensions#whitespace#toggle()
endif
endfunction
function! airline#extensions#whitespace#init(ext)
function! airline#extensions#whitespace#init(...)
if !s:initialized
let s:initialized = 1
call a:ext.add_statusline_funcref(function('airline#extensions#whitespace#apply'))
call add(g:airline_statusline_funcrefs, function('airline#extensions#whitespace#apply'))
endif
unlet! b:airline_whitespace_check