Re-fix flickering

This commit is contained in:
hrsh7th
2022-01-10 22:39:58 +09:00
parent 89643cc287
commit e0cfbbbaa8

View File

@@ -186,6 +186,10 @@ misc.redraw = setmetatable({
force = false, force = false,
}, { }, {
__call = function(self, force) __call = function(self, force)
if vim.tbl_contains({ '/', '?' }, vim.fn.getcmdtype()) then
return vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes('<C-r>=""<CR>', true, true, true), 'n', true)
end
if self.doing then if self.doing then
return return
end end
@@ -197,9 +201,6 @@ misc.redraw = setmetatable({
else else
vim.cmd([[redraw]]) vim.cmd([[redraw]])
end end
if vim.tbl_contains({ '/', '?' }, vim.fn.getcmdtype()) then
vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes('<C-r>=""<CR>', true, true, true), 'n', true)
end
self.doing = false self.doing = false
self.force = false self.force = false
end) end)