From 2413babe8b227905f182697dd87d441139d29780 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Sun, 11 Aug 2013 15:24:08 +0000 Subject: [PATCH] remove checks for airline_active, it is always true --- autoload/airline/extensions/syntastic.vim | 6 ++---- autoload/airline/extensions/tagbar.vim | 2 +- autoload/airline/extensions/whitespace.vim | 10 ++++------ 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/autoload/airline/extensions/syntastic.vim b/autoload/airline/extensions/syntastic.vim index 85069032..3ce11076 100644 --- a/autoload/airline/extensions/syntastic.vim +++ b/autoload/airline/extensions/syntastic.vim @@ -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) diff --git a/autoload/airline/extensions/tagbar.vim b/autoload/airline/extensions/tagbar.vim index 874bc8dc..81086530 100644 --- a/autoload/airline/extensions/tagbar.vim +++ b/autoload/airline/extensions/tagbar.vim @@ -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() diff --git a/autoload/airline/extensions/whitespace.vim b/autoload/airline/extensions/whitespace.vim index 46a7c06f..b19d42be 100644 --- a/autoload/airline/extensions/whitespace.vim +++ b/autoload/airline/extensions/whitespace.vim @@ -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()