mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +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:
@ -315,7 +315,7 @@ local function adjust_start_col(lnum, line, items, encoding)
|
||||
end
|
||||
end
|
||||
if min_start_char then
|
||||
return lsp.util._str_byteindex_enc(line, min_start_char, encoding)
|
||||
return vim.str_byteindex(line, encoding, min_start_char, false)
|
||||
else
|
||||
return nil
|
||||
end
|
||||
|
Reference in New Issue
Block a user