Merge pull request #1276 from chrisbra/tabline_bug

do not skip empty sections for the tabline
This commit is contained in:
Christian Brabandt 2016-09-27 22:46:04 +02:00 committed by GitHub
commit 7a736021ee
2 changed files with 4 additions and 1 deletions

View File

@ -150,9 +150,11 @@ endfunction
function! s:section_is_empty(self, content) function! s:section_is_empty(self, content)
let start=1 let start=1
" do not check for inactive windows " do not check for inactive windows or the tabline
if a:self._context.active == 0 if a:self._context.active == 0
return 0 return 0
elseif get(a:self._context, 'tabline', 0)
return 0
endif endif
" only check, if airline#skip_empty_sections == 1 " only check, if airline#skip_empty_sections == 1

View File

@ -157,6 +157,7 @@ endfunction
function! airline#extensions#tabline#new_builder() function! airline#extensions#tabline#new_builder()
let builder_context = { let builder_context = {
\ 'active' : 1, \ 'active' : 1,
\ 'tabline' : 1,
\ 'right_sep' : get(g:, 'airline#extensions#tabline#right_sep' , g:airline_right_sep), \ 'right_sep' : get(g:, 'airline#extensions#tabline#right_sep' , g:airline_right_sep),
\ 'right_alt_sep' : get(g:, 'airline#extensions#tabline#right_alt_sep', g:airline_right_alt_sep), \ 'right_alt_sep' : get(g:, 'airline#extensions#tabline#right_alt_sep', g:airline_right_alt_sep),
\ } \ }