From e699962a49490c8a7ca2426386467ba118d0a94f Mon Sep 17 00:00:00 2001 From: hrsh7th Date: Fri, 22 Oct 2021 22:50:46 +0900 Subject: [PATCH] Fix #389 --- lua/cmp/view/native_entries_view.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/cmp/view/native_entries_view.lua b/lua/cmp/view/native_entries_view.lua index 0602f53..6776361 100644 --- a/lua/cmp/view/native_entries_view.lua +++ b/lua/cmp/view/native_entries_view.lua @@ -71,7 +71,7 @@ end native_entries_view.close = function(self) if api.is_suitable_mode() then - vim.fn.complete(1, {}) + vim.api.nvim_select_popupmenu_item(-1, false, true, {}) end self.offset = -1 self.entries = {}