From f50ce0f9f69ce4db1d1efa8c7f7f44d90bb7916a Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Wed, 3 Aug 2022 21:44:29 +0600 Subject: [PATCH] fixup: statusline not refreshing when winbar or inactive_winbar is set fixes #777 --- lua/lualine.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/lualine.lua b/lua/lualine.lua index 1d9f49c..f87dcf6 100644 --- a/lua/lualine.lua +++ b/lua/lualine.lua @@ -449,7 +449,7 @@ local function set_tabline(hide) timers.tal_timer, 0, config.options.refresh.tabline, - modules.utils.timer_call(timers.stl_timer, 'lualine_tal_refresh', function() + modules.utils.timer_call(timers.tal_timer, 'lualine_tal_refresh', function() refresh { kind = 'tabpage', place = { 'tabline' }, trigger = 'timer' } end, 3, 'lualine: Failed to refresh tabline') ) @@ -529,10 +529,10 @@ local function set_winbar(hide) vim.cmd([[augroup lualine_wb_refresh | exe "autocmd!" | augroup END]]) if not hide and (next(config.winbar) ~= nil or next(config.inactive_winbar) ~= nil) then vim.loop.timer_start( - timers.stl_timer, + timers.wb_timer, 0, config.options.refresh.winbar, - modules.utils.timer_call(timers.stl_timer, 'lualine_wb_refresh', function() + modules.utils.timer_call(timers.wb_timer, 'lualine_wb_refresh', function() refresh { kind = 'tabpage', place = { 'winbar' }, trigger = 'timer' } end, 3, 'lualine: Failed to refresh winbar') )