From 6fbc35b3e0134ccce3848fef8855a3bb390aa509 Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Sat, 23 Jul 2022 08:45:18 +0600 Subject: [PATCH] fix: don't call redrawstatus/tabline they have a ton of side effects closes #747 --- lua/lualine.lua | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lua/lualine.lua b/lua/lualine.lua index 3e253e9..bafa858 100644 --- a/lua/lualine.lua +++ b/lua/lualine.lua @@ -360,13 +360,6 @@ local function refresh(opts) modules.nvim_opts.set('tabline', vim.api.nvim_win_call(vim.api.nvim_get_current_win(), tabline), { global = true }) 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 end