Skip to content

Commit

Permalink
fix: offset encoding for text edits
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Nov 9, 2024
1 parent b71e5ef commit c2a56e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/blink/cmp/accept/text-edits.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2a56e4

Please sign in to comment.