fixup: statusline not refreshing when winbar or inactive_winbar is set
fixes #777
This commit is contained in:
parent
93b2f4af62
commit
f50ce0f9f6
@ -449,7 +449,7 @@ local function set_tabline(hide)
|
|||||||
timers.tal_timer,
|
timers.tal_timer,
|
||||||
0,
|
0,
|
||||||
config.options.refresh.tabline,
|
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' }
|
refresh { kind = 'tabpage', place = { 'tabline' }, trigger = 'timer' }
|
||||||
end, 3, 'lualine: Failed to refresh tabline')
|
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]])
|
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
|
if not hide and (next(config.winbar) ~= nil or next(config.inactive_winbar) ~= nil) then
|
||||||
vim.loop.timer_start(
|
vim.loop.timer_start(
|
||||||
timers.stl_timer,
|
timers.wb_timer,
|
||||||
0,
|
0,
|
||||||
config.options.refresh.winbar,
|
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' }
|
refresh { kind = 'tabpage', place = { 'winbar' }, trigger = 'timer' }
|
||||||
end, 3, 'lualine: Failed to refresh winbar')
|
end, 3, 'lualine: Failed to refresh winbar')
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user