From 95a46cc1063c2e1f0815ce6cd1fed68d523cef24 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Fri, 23 Aug 2013 16:42:55 +0000 Subject: [PATCH] fix whitespace toggle command (#177). --- autoload/airline/extensions/whitespace.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/airline/extensions/whitespace.vim b/autoload/airline/extensions/whitespace.vim index da76bf58..17f9c087 100644 --- a/autoload/airline/extensions/whitespace.vim +++ b/autoload/airline/extensions/whitespace.vim @@ -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