Remove hidden sections before reloading

This commit is contained in:
Olivier Roques
2020-12-28 13:53:09 +01:00
parent 2cb26dba5b
commit 1076f7f317
2 changed files with 14 additions and 5 deletions

View File

@@ -33,8 +33,9 @@ M.options = {
function M.update_statusline()
local cache = M.options.sections
if common.is_active() then
cache = statusline.remove_hidden_sections(cache)
cache = statusline.reload_sections(cache)
cache = statusline.filter_sections(cache)
cache = statusline.remove_empty_sections(cache)
cache = statusline.aggregate_sections(cache)
api.nvim_win_set_var(g.statusline_winid, 'hardline_cache', cache)
else