diff options
author | Tristan Knight <admin@snappeh.com> | 2024-10-16 17:12:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-16 09:12:19 -0700 |
commit | 80e37aa533573ef1ad96bcccc006b8d45dc963b9 (patch) | |
tree | 774f2f40bfe8364dca6169fd52d4fe1552347e73 /runtime/lua/vim/lsp/_snippet_grammar.lua | |
parent | f72dc2b4c805f309f23aff62b3e7ba7b71a554d2 (diff) | |
download | rneovim-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/lsp/_snippet_grammar.lua')
0 files changed, 0 insertions, 0 deletions