mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 04:18:18 +00:00

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
(cherry picked from commit 80e37aa533
)