mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
refactor(lsp): drop str_byteindex/str_utfindex wrappers #30915
* deprecate old signatures * move to new str_byteindex/str_utfindex signature * use single-underscore name (double-underscore is reserved for Lua itself)
This commit is contained in:
@@ -219,13 +219,13 @@ describe('vim.lsp.diagnostic', function()
|
||||
eq(1, #result)
|
||||
eq(
|
||||
exec_lua(function()
|
||||
return vim.str_byteindex(line, 7, true)
|
||||
return vim.str_byteindex(line, 'utf-16', 7)
|
||||
end),
|
||||
result[1].col
|
||||
)
|
||||
eq(
|
||||
exec_lua(function()
|
||||
return vim.str_byteindex(line, 8, true)
|
||||
return vim.str_byteindex(line, 'utf-16', 8)
|
||||
end),
|
||||
result[1].end_col
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user