mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-08-12 19:06:56 +08:00
builder: simplify skip_empty_sections condition
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -190,12 +190,8 @@ function! s:section_is_empty(self, content)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" only check, if airline#skip_empty_sections == 1
|
" only check, if airline#skip_empty_sections == 1
|
||||||
if get(g:, 'airline_skip_empty_sections', 0) == 0
|
if get(g:, 'airline_skip_empty_sections', 0) == 0 ||
|
||||||
return 0
|
\ get(w:, 'airline_skip_empty_sections', -1) == 0
|
||||||
endif
|
|
||||||
|
|
||||||
" only check, if airline#skip_empty_sections == 1
|
|
||||||
if get(w:, 'airline_skip_empty_sections', -1) == 0
|
|
||||||
return 0
|
return 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user