From 8eb8d17caf54d1afba7f64cb90fc803ab933e376 Mon Sep 17 00:00:00 2001 From: glepnir Date: Mon, 13 Nov 2023 09:53:50 +0800 Subject: [PATCH] update --- lua/epo/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/epo/init.lua b/lua/epo/init.lua index 0b577e1..12bd62b 100644 --- a/lua/epo/init.lua +++ b/lua/epo/init.lua @@ -210,7 +210,7 @@ local function complete_ondone(bufnr) local newText = completion_item.textEdit.newText local range = completion_item.textEdit.range local nextchar = curline:sub(col + 1, col + 1) - local determine = newText:sub(#item.abbr, #item.abbr) + local determine = newText:sub(#item.word, #item.word) if determine == nextchar then range['end'].character = col + 1 api.nvim_win_set_cursor(0, { lnum, col + 1 })