Skip to content

Commit

Permalink
fix: cmp.close() when autocompletion = false (#1921)
Browse files Browse the repository at this point in the history
cf. #1920
  • Loading branch information
kjuq authored May 12, 2024
1 parent 1d88772 commit 2412237
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/cmp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2412237

Please sign in to comment.