From 136a92cb977f120c053086efcb768f5bcad6fa0e Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Thu, 4 Aug 2022 18:05:05 +0600 Subject: [PATCH] fixup: fix all winbars being evaluated in curwins context with globarstatus fixes #779 --- lua/lualine.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lualine.lua b/lua/lualine.lua index f87dcf6..0603a51 100644 --- a/lua/lualine.lua +++ b/lua/lualine.lua @@ -415,7 +415,7 @@ local function refresh(opts) end if not timers.halt_wb_refresh and vim.tbl_contains(opts.place, 'winbar') then for _, win in ipairs(wins) do - refresh_real_curwin = config.options.globalstatus and last_focus[curtab] or win + refresh_real_curwin = win if vim.api.nvim_win_get_height(win) > 1 then local wbr_cur = vim.api.nvim_win_call(refresh_real_curwin, M.winbar) local wbr_last = modules.nvim_opts.get_cache('winbar', { window = win })