aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_init_packages.lua
diff options
context:
space:
mode:
authorTristan Knight <admin@snappeh.com>2024-10-16 17:12:19 +0100
committerGitHub <noreply@github.com>2024-10-16 09:12:19 -0700
commit80e37aa533573ef1ad96bcccc006b8d45dc963b9 (patch)
tree774f2f40bfe8364dca6169fd52d4fe1552347e73 /runtime/lua/vim/_init_packages.lua
parentf72dc2b4c805f309f23aff62b3e7ba7b71a554d2 (diff)
downloadrneovim-80e37aa533573ef1ad96bcccc006b8d45dc963b9.tar.gz
rneovim-80e37aa533573ef1ad96bcccc006b8d45dc963b9.tar.bz2
rneovim-80e37aa533573ef1ad96bcccc006b8d45dc963b9.zip
fix(lsp): str_byteindex_enc bounds checking #30747
Problem: Previously the index was only checked against the UTF8 length. This could cause unexpected behaviours for strings containing multibyte chars Solution: Check indicies correctly against their max value before returning the fallback length
Diffstat (limited to 'runtime/lua/vim/_init_packages.lua')
0 files changed, 0 insertions, 0 deletions