From ed70a7e06245bffd513799b96bf35ae65ffa72fa Mon Sep 17 00:00:00 2001 From: hrsh7th Date: Wed, 4 Aug 2021 02:07:59 +0900 Subject: [PATCH] Allow completion on backspace --- lua/cmp/core.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/cmp/core.lua b/lua/cmp/core.lua index 3b1e807..047449c 100644 --- a/lua/cmp/core.lua +++ b/lua/cmp/core.lua @@ -123,7 +123,7 @@ core.autocomplete = function(event) end debug.log(('ctx: `%s`'):format(ctx.cursor_before_line)) - if ctx:is_forwarding() then + if ctx:changed(ctx.prev_context) then debug.log('changed') core.menu:restore(ctx)