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

This commit reverts b1042d3184

Yeah calling redraw still causes too many issues like #781 #788

fixes #788
This commit is contained in:
shadmansaleh 2022-08-07 20:34:09 +06:00
parent f40db9a224
commit e22c7b3c9b
1 changed files with 0 additions and 13 deletions

View File

@ -438,19 +438,6 @@ local function refresh(opts)
end
end
-- call redraw on command mode unless &wildmode=list
-- workaround for
-- https://github.com/neovim/neovim/issues/19472
-- https://github.com/nvim-lualine/lualine.nvim/issues/781
-- Note when wildmode is set to list https://github.com/neovim/neovim/issues/19472 issue persists.
if vim.api.nvim_get_mode().mode == 'c' and not vim.go.wildmode:find('list') then
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
end
vim.g.actual_curwin = old_actual_curwin
refresh_real_curwin = nil
end