From ecd66184f6e697b3ff5c58b5dbad092d5dd8396e Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Thu, 5 Sep 2013 14:01:57 +0000 Subject: [PATCH] init whitespace extension to blank. fixes #226. --- autoload/airline/init.vim | 2 +- t/extensions_default.vim | 4 ++-- t/init.vim | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/autoload/airline/init.vim b/autoload/airline/init.vim index 46073abe..b0c42c10 100644 --- a/autoload/airline/init.vim +++ b/autoload/airline/init.vim @@ -67,7 +67,7 @@ function! airline#init#bootstrap() \ }) call airline#parts#define_raw('file', '%f%m') call airline#parts#define_raw('ffenc', '%{printf("%s%s",&fenc,strlen(&ff)>0?"[".&ff."]":"")}') - call airline#parts#define_empty(['hunks', 'branch', 'tagbar', 'syntastic']) + call airline#parts#define_empty(['hunks', 'branch', 'tagbar', 'syntastic', 'whitespace']) endfunction function! airline#init#sections() diff --git a/t/extensions_default.vim b/t/extensions_default.vim index 71cc3c16..475884a1 100644 --- a/t/extensions_default.vim +++ b/t/extensions_default.vim @@ -23,8 +23,8 @@ describe 'default' it 'should only render warning section in active splits' wincmd s - Expect airline#statusline(1) =~ 'whitespace' - Expect airline#statusline(2) !~ 'whitespace' + Expect airline#statusline(1) =~ 'warning' + Expect airline#statusline(2) !~ 'warning' wincmd c end end diff --git a/t/init.vim b/t/init.vim index 60ba6321..e937de0a 100644 --- a/t/init.vim +++ b/t/init.vim @@ -61,6 +61,7 @@ describe 'init' Expect airline#parts#get('branch').raw == '' Expect airline#parts#get('tagbar').raw == '' Expect airline#parts#get('syntastic').raw == '' + Expect airline#parts#get('whitespace').raw == '' end end