remove checks for airline_active, it is always true

This commit is contained in:
Bailey Ling 2013-08-11 15:24:08 +00:00
parent 11e7e67d8d
commit 2413babe8b
3 changed files with 7 additions and 11 deletions

View File

@ -1,10 +1,8 @@
" MIT license. Copyright (c) 2013 Bailey Ling.
" MIT License. Copyright (c) 2013 Bailey Ling.
" vim: ts=2 sts=2 sw=2 fdm=indent
function! airline#extensions#syntastic#apply()
if exists('w:airline_active') && w:airline_active
let w:airline_section_warning = ' %#warningmsg#%{SyntasticStatuslineFlag()}'
endif
let w:airline_section_warning = ' %#warningmsg#%{SyntasticStatuslineFlag()}'
endfunction
function! airline#extensions#syntastic#init(ext)

View File

@ -1,4 +1,4 @@
" MIT license. Copyright (c) 2013 Bailey Ling.
" MIT License. Copyright (c) 2013 Bailey Ling.
" vim: ts=2 sts=2 sw=2 fdm=indent
function! airline#extensions#tagbar#apply()

View File

@ -1,4 +1,4 @@
" MIT license. Copyright (c) 2013 Bailey Ling.
" MIT License. Copyright (c) 2013 Bailey Ling.
" vim: ts=2 sts=2 sw=2 fdm=indent
" http://got-ravings.blogspot.com/2008/10/vim-pr0n-statusline-whitespace-flags.html
@ -34,12 +34,10 @@ function! airline#extensions#whitespace#check()
endfunction!
function! airline#extensions#whitespace#apply()
if exists('w:airline_active') && w:airline_active
if !exists('w:airline_section_warning')
let w:airline_section_warning = ' '
endif
let w:airline_section_warning .= '%{airline#extensions#whitespace#check()}'
if !exists('w:airline_section_warning')
let w:airline_section_warning = ' '
endif
let w:airline_section_warning .= '%{airline#extensions#whitespace#check()}'
endfunction
function! airline#extensions#whitespace#toggle()