From b1042d318446601d57e8b44033e597e003511636 Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Thu, 4 Aug 2022 19:22:09 +0600 Subject: [PATCH] Revert "fix: don't call redrawstatus/tabline they have a ton of side effects" This reverts commit 6fbc35b3e0134ccce3848fef8855a3bb390aa509. The statusline flashing issue in #747 doesn't seem to occur any more as we aren't updating in autocmd context . But we still have statusline not updating in cmdline mode. So lets try reintroducing the redraw commands. --- lua/lualine.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/lualine.lua b/lua/lualine.lua index 6832ad4..fcbbc5e 100644 --- a/lua/lualine.lua +++ b/lua/lualine.lua @@ -438,6 +438,13 @@ local function refresh(opts) end end + -- call redraw + if vim.tbl_contains(opts.place, 'statusline') or vim.tbl_contains(opts.place, 'winbar') then + vim.cmd('redrawstatus') + elseif vim.tbl_contains(opts.place, 'tabline') then + vim.cmd('redrawtabline') + end + vim.g.actual_curwin = old_actual_curwin refresh_real_curwin = nil end