From 5a9ad0d88b3982ce7c67bfef8d805f8aafc88385 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Mon, 6 Jan 2025 12:09:15 +0000 Subject: [PATCH] Fix completion menu showing over the cmd win (#1904) Removed/regressed in 5054c1449079e --- lua/cmp/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/cmp/init.lua b/lua/cmp/init.lua index 2ad81cc..0c1ac1a 100644 --- a/lua/cmp/init.lua +++ b/lua/cmp/init.lua @@ -379,7 +379,7 @@ autocmd.subscribe('CursorMovedI', function() end) -- If make this asynchronous, the completion menu will not close when the command output is displayed. -autocmd.subscribe({ 'InsertLeave', 'CmdlineLeave' }, function() +autocmd.subscribe({ 'InsertLeave', 'CmdlineLeave', 'CmdwinEnter' }, function() cmp.core:reset() cmp.core.view:close() end)