From c52bb3dd3219f98089bcf008a109cfbab9b86494 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Sat, 11 Apr 2026 23:19:39 +0000 Subject: [PATCH] builder: simplify skip_empty_sections condition Signed-off-by: Christian Brabandt --- autoload/airline/builder.vim | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/autoload/airline/builder.vim b/autoload/airline/builder.vim index ad2d8386..def4fcde 100644 --- a/autoload/airline/builder.vim +++ b/autoload/airline/builder.vim @@ -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