fix: unexpected behavior when autocomplete = false (#1920)

- https://github.com/hrsh7th/nvim-cmp/issues/1251
- https://github.com/hrsh7th/nvim-cmp/issues/1919
This commit is contained in:
kjuq 2024-05-12 17:14:05 +09:00 committed by GitHub
parent cd2cf0c124
commit 1d88772dc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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