From 4a47cd70cd393df7451069e42ee5618753fa685d Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 11 Apr 2017 22:10:43 +0200 Subject: [PATCH] correctly check w:airline_skip_empty_sections var --- autoload/airline/builder.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/builder.vim b/autoload/airline/builder.vim index 20b4944e..d87ddfeb 100644 --- a/autoload/airline/builder.vim +++ b/autoload/airline/builder.vim @@ -163,7 +163,7 @@ function! s:section_is_empty(self, content) endif " only check, if airline#skip_empty_sections == 1 - if get(w:, 'airline_skip_empty_sections', 0) == 0 + if get(w:, 'airline_skip_empty_sections', -1) == 0 return 0 endif " assume accents sections to be never empty