mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-04-27 09:01:24 +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
|
||||
|
||||
" only check, if airline#skip_empty_sections == 1
|
||||
if get(g:, 'airline_skip_empty_sections', 0) == 0
|
||||
return 0
|
||||
endif
|
||||
|
||||
" only check, if airline#skip_empty_sections == 1
|
||||
if get(w:, 'airline_skip_empty_sections', -1) == 0
|
||||
if get(g:, 'airline_skip_empty_sections', 0) == 0 ||
|
||||
\ get(w:, 'airline_skip_empty_sections', -1) == 0
|
||||
return 0
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user