From c2a56e473ff5952211f7c890de0b831e8df3976d Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Fri, 8 Nov 2024 21:24:40 -0500 Subject: [PATCH] fix: offset encoding for text edits --- lua/blink/cmp/accept/text-edits.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/blink/cmp/accept/text-edits.lua b/lua/blink/cmp/accept/text-edits.lua index 47b34a74..250b73c6 100644 --- a/lua/blink/cmp/accept/text-edits.lua +++ b/lua/blink/cmp/accept/text-edits.lua @@ -70,7 +70,7 @@ function text_edits.get_from_item(item) local text_edit = vim.deepcopy(item.textEdit) - local client = vim.lsp.get_client_by_id(client_id) + local client = vim.lsp.get_client_by_id(item.client_id) local offset_encoding = client ~= nil and client.offset_encoding or 'utf-8' if offset_encoding ~= 'utf-8' then