From e22c7b3c9b5916b56654f8da91f4a139f3b5988f Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Sun, 7 Aug 2022 20:34:09 +0600 Subject: [PATCH] Revert: "Revert fix: don't call redrawstatus/tabline they have a ton of side effects" This commit reverts b1042d318446601d57 Yeah calling redraw still causes too many issues like #781 #788 fixes #788 --- lua/lualine.lua | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lua/lualine.lua b/lua/lualine.lua index cd0da03..6832ad4 100644 --- a/lua/lualine.lua +++ b/lua/lualine.lua @@ -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