mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-01-18 00:55:02 +08:00
correctly check w:airline_skip_empty_sections var
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user