neovim
neovim copied to clipboard
fix(lua): fix vim.region with multibyte characters
Fix #20161
Prevent out of range error when calling str_byteindex
.
Use vim.str_byteindex(bufline, #bufline)
to cacluate utf length of bufline
.