From e64421ef583fcaf0bcb3cd9d9a430eb9917ab935 Mon Sep 17 00:00:00 2001 From: hrsh7th <> Date: Wed, 4 May 2022 02:57:43 +0900 Subject: [PATCH] Fix #960 --- lua/cmp/init.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lua/cmp/init.lua b/lua/cmp/init.lua index ffb1b69..93e95df 100644 --- a/lua/cmp/init.lua +++ b/lua/cmp/init.lua @@ -309,10 +309,8 @@ autocmd.subscribe( -- If make this asynchronous, the completion menu will not close when the command output is displayed. autocmd.subscribe({ 'InsertLeave', 'CmdlineLeave' }, function() - if config.enabled() then - cmp.core:reset() - cmp.core.view:close() - end + cmp.core:reset() + cmp.core.view:close() end) autocmd.subscribe(