mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-03-04 22:31:23 +08:00
do not skip empty sections for the tabline
commit #3d667c32d3ac04 fixed a bug, that a section was not considered empty for the statusline, also g:airline_skip_empty was set. However unfortunately, this lead to a regression, makeing the tabline ugly, because sections, that contained a single highlighting group would be considered empty and would therefore be skipped. Since this is not what is expected, make s:section_is_empty() return zero, when it notices we are looking at a tabline. fixes #1273
This commit is contained in:
@@ -157,6 +157,7 @@ endfunction
|
||||
function! airline#extensions#tabline#new_builder()
|
||||
let builder_context = {
|
||||
\ 'active' : 1,
|
||||
\ 'tabline' : 1,
|
||||
\ '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),
|
||||
\ }
|
||||
|
||||
Reference in New Issue
Block a user