fix whitespace toggle command (#177).
This commit is contained in:
parent
ab59dfffe7
commit
95a46cc106
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user