Revert "fix: don't call redrawstatus/tabline they have a ton of side effects"

This reverts commit 6fbc35b3e0.
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.
This commit is contained in:
shadmansaleh 2022-08-04 19:22:09 +06:00
parent d2a727da9f
commit b1042d3184
1 changed files with 7 additions and 0 deletions

View File

@ -438,6 +438,13 @@ local function refresh(opts)
end end
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 vim.g.actual_curwin = old_actual_curwin
refresh_real_curwin = nil refresh_real_curwin = nil
end end