Fix completion menu showing over the cmd win (#1904)

Removed/regressed in 5054c14490
This commit is contained in:
Rob Pilling
2025-01-06 12:09:15 +00:00
committed by GitHub
parent 28ab7f7d05
commit 5a9ad0d88b

View File

@@ -379,7 +379,7 @@ autocmd.subscribe('CursorMovedI', function()
end) end)
-- If make this asynchronous, the completion menu will not close when the command output is displayed. -- 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:reset()
cmp.core.view:close() cmp.core.view:close()
end) end)