builder: simplify skip_empty_sections condition

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2026-04-11 23:19:39 +00:00
parent 512456e425
commit c52bb3dd32
+2 -6
View File
@@ -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