From 76d92fca643d53b735ddaf07e0da293949973764 Mon Sep 17 00:00:00 2001 From: hrsh7th Date: Sat, 15 Jan 2022 20:25:34 +0900 Subject: [PATCH] Fix cmdline completion redraw --- lua/cmp/utils/keymap.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/cmp/utils/keymap.lua b/lua/cmp/utils/keymap.lua index b4ffecf..7492f6e 100644 --- a/lua/cmp/utils/keymap.lua +++ b/lua/cmp/utils/keymap.lua @@ -160,13 +160,13 @@ keymap.evacuate = setmetatable({ callback = callback, noremap = existing.noremap, script = existing.script, - silent = true, + silent = mode ~= 'c', nowait = existing.nowait, } or { expr = true, noremap = existing.noremap, script = existing.script, - silent = true, + silent = mode ~= 'c', nowait = existing.nowait, })