Fixes the bug that the cmp.close does not close the menu when using native_menu.

This commit is contained in:
hrsh7th
2021-11-09 14:11:51 +09:00
parent a0053885ba
commit 3968bea5e2

View File

@@ -78,7 +78,8 @@ end
native_entries_view.close = function(self)
if api.is_suitable_mode() then
vim.api.nvim_select_popupmenu_item(-1, false, false, {})
vim.fn.complete(1, {})
vim.api.nvim_select_popupmenu_item(-1, false, true, {})
end
self.offset = -1
self.entries = {}