use statusline function for better control.

This commit is contained in:
Bailey Ling
2013-09-02 18:55:15 +00:00
parent 9966b3d9f3
commit 301fcdc64a
5 changed files with 18 additions and 14 deletions

View File

@@ -23,8 +23,8 @@ describe 'default'
it 'should only render warning section in active splits'
wincmd s
Expect getwinvar(1, '&statusline') =~ 'whitespace'
Expect getwinvar(2, '&statusline') !~ 'whitespace'
Expect airline#statusline(1) =~ 'whitespace'
Expect airline#statusline(2) !~ 'whitespace'
wincmd c
end
end