Format with stylua
This commit is contained in:
committed by
github-actions[bot]
parent
1a1d7ecb73
commit
c183f45fab
@@ -65,8 +65,7 @@ lsp.Position = {
|
|||||||
return position
|
return position
|
||||||
end
|
end
|
||||||
|
|
||||||
local ok, byteindex = pcall(vim.str_byteindex,
|
local ok, byteindex = pcall(vim.str_byteindex, text, position.character, from_encoding == lsp.PositionEncodingKind.UTF16)
|
||||||
text, position.character, from_encoding == lsp.PositionEncodingKind.UTF16)
|
|
||||||
if not ok then
|
if not ok then
|
||||||
return position
|
return position
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user