From 7e67df513a7a5e070e828e589b6f158d37b8d9ce Mon Sep 17 00:00:00 2001 From: hrsh7th <629908+hrsh7th@users.noreply.github.com> Date: Sat, 20 Aug 2022 20:41:36 +0900 Subject: [PATCH] Fix #1135 --- lua/cmp/utils/misc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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