mirror of
https://github.com/hrsh7th/nvim-cmp
synced 2024-09-16 20:54:03 +02:00
fix: cmp.close()
when autocompletion = false
(#1921)
cf. https://github.com/hrsh7th/nvim-cmp/pull/1920
This commit is contained in:
parent
1d88772dc6
commit
2412237181
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue