mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-28 08:24:24 +02:00
remove checks for airline_active, it is always true
This commit is contained in:
parent
11e7e67d8d
commit
2413babe8b
@ -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
|
" vim: ts=2 sts=2 sw=2 fdm=indent
|
||||||
|
|
||||||
function! airline#extensions#syntastic#apply()
|
function! airline#extensions#syntastic#apply()
|
||||||
if exists('w:airline_active') && w:airline_active
|
|
||||||
let w:airline_section_warning = ' %#warningmsg#%{SyntasticStatuslineFlag()}'
|
let w:airline_section_warning = ' %#warningmsg#%{SyntasticStatuslineFlag()}'
|
||||||
endif
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#syntastic#init(ext)
|
function! airline#extensions#syntastic#init(ext)
|
||||||
|
@ -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
|
" vim: ts=2 sts=2 sw=2 fdm=indent
|
||||||
|
|
||||||
function! airline#extensions#tagbar#apply()
|
function! airline#extensions#tagbar#apply()
|
||||||
|
@ -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
|
" vim: ts=2 sts=2 sw=2 fdm=indent
|
||||||
|
|
||||||
" http://got-ravings.blogspot.com/2008/10/vim-pr0n-statusline-whitespace-flags.html
|
" http://got-ravings.blogspot.com/2008/10/vim-pr0n-statusline-whitespace-flags.html
|
||||||
@ -34,12 +34,10 @@ function! airline#extensions#whitespace#check()
|
|||||||
endfunction!
|
endfunction!
|
||||||
|
|
||||||
function! airline#extensions#whitespace#apply()
|
function! airline#extensions#whitespace#apply()
|
||||||
if exists('w:airline_active') && w:airline_active
|
|
||||||
if !exists('w:airline_section_warning')
|
if !exists('w:airline_section_warning')
|
||||||
let w:airline_section_warning = ' '
|
let w:airline_section_warning = ' '
|
||||||
endif
|
endif
|
||||||
let w:airline_section_warning .= '%{airline#extensions#whitespace#check()}'
|
let w:airline_section_warning .= '%{airline#extensions#whitespace#check()}'
|
||||||
endif
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#whitespace#toggle()
|
function! airline#extensions#whitespace#toggle()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user