mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21: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:
@@ -305,7 +305,7 @@ local function matchstr(text, pat_or_re)
|
||||
return
|
||||
end
|
||||
|
||||
return text:sub(vim.str_utfindex(text, s) + 1, vim.str_utfindex(text, e))
|
||||
return text:sub(vim.str_utfindex(text, 'utf-32', s) + 1, vim.str_utfindex(text, 'utf-32', e))
|
||||
end
|
||||
|
||||
-- attempt to extract the name and sect out of 'name(sect)'
|
||||
|
Reference in New Issue
Block a user