fix: cmp.close() when autocompletion = false (#1921)

cf. https://github.com/hrsh7th/nvim-cmp/pull/1920
This commit is contained in:
kjuq 2024-05-12 18:45:22 +09:00 committed by GitHub
parent 1d88772dc6
commit 2412237181
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,6 +108,7 @@ cmp.close = cmp.sync(function()
if cmp.core.view:visible() then
local release = cmp.core:suspend()
cmp.core.view:close()
cmp.core:reset()
vim.schedule(release)
return true
else