diff --git a/lua/cmp/utils/misc.lua b/lua/cmp/utils/misc.lua index 1e6665a..a322103 100644 --- a/lua/cmp/utils/misc.lua +++ b/lua/cmp/utils/misc.lua @@ -225,7 +225,8 @@ end misc.redraw = setmetatable({ doing = false, force = false, - termcode = vim.api.nvim_replace_termcodes('', true, true, true), + -- We use `` to redraw the screen. (Previously, We use . it will remove the unmatches search history.) + termcode = vim.api.nvim_replace_termcodes('', true, true, true), }, { __call = function(self, force) if vim.tbl_contains({ '/', '?' }, vim.fn.getcmdtype()) then