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
|
||||
end
|
||||
|
||||
local ok, byteindex = pcall(vim.str_byteindex,
|
||||
text, position.character, from_encoding == lsp.PositionEncodingKind.UTF16)
|
||||
local ok, byteindex = pcall(vim.str_byteindex, text, position.character, from_encoding == lsp.PositionEncodingKind.UTF16)
|
||||
if not ok then
|
||||
return position
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user