fixup: fix all winbars being evaluated in curwins context with globarstatus

fixes #779
This commit is contained in:
shadmansaleh 2022-08-04 18:05:05 +06:00
parent f50ce0f9f6
commit 136a92cb97
1 changed files with 1 additions and 1 deletions

View File

@ -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 })