correctly check w:airline_skip_empty_sections var

This commit is contained in:
Christian Brabandt 2017-04-11 22:10:43 +02:00
parent f76ede3b28
commit 4a47cd70cd
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 1 additions and 1 deletions

View File

@ -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