From ea9eaff5739856f3187d228d2c1181ea49fd4697 Mon Sep 17 00:00:00 2001 From: hrsh7th <629908+hrsh7th@users.noreply.github.com> Date: Thu, 16 Feb 2023 22:49:56 +0900 Subject: [PATCH] Maybe improve cmdline redraw --- lua/cmp/utils/misc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/cmp/utils/misc.lua b/lua/cmp/utils/misc.lua index 1b6f393..6211406 100644 --- a/lua/cmp/utils/misc.lua +++ b/lua/cmp/utils/misc.lua @@ -226,13 +226,13 @@ misc.redraw = setmetatable({ doing = false, force = false, -- We use `` to redraw the screen. (Previously, We use . it will remove the unmatches search history.) - incsearch_redraw_keys = '', + incsearch_redraw_keys = ' ', }, { __call = function(self, force) local termcode = vim.api.nvim_replace_termcodes(self.incsearch_redraw_keys, true, true, true) if vim.tbl_contains({ '/', '?' }, vim.fn.getcmdtype()) then if vim.o.incsearch then - return vim.api.nvim_feedkeys(termcode, 'in', true) + return vim.api.nvim_feedkeys(termcode, 'ni', true) end end