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:
@@ -120,6 +120,7 @@ cmp.abort = cmp.sync(function()
|
|||||||
if cmp.core.view:visible() then
|
if cmp.core.view:visible() then
|
||||||
local release = cmp.core:suspend()
|
local release = cmp.core:suspend()
|
||||||
cmp.core.view:abort()
|
cmp.core.view:abort()
|
||||||
|
cmp.core:reset()
|
||||||
vim.schedule(release)
|
vim.schedule(release)
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user