aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/iter.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-06-09 17:43:46 +0800
committerGitHub <noreply@github.com>2023-06-09 17:43:46 +0800
commit106922898ad1510954737d38e7f8db78559ae6bd (patch)
tree05c95cb03be4dbfa9b9bc21bc20fe13c85885ccb /runtime/lua/vim/iter.lua
parente5e0bda41b640d324350c5147b956e37e9f8b32c (diff)
downloadrneovim-106922898ad1510954737d38e7f8db78559ae6bd.tar.gz
rneovim-106922898ad1510954737d38e7f8db78559ae6bd.tar.bz2
rneovim-106922898ad1510954737d38e7f8db78559ae6bd.zip
vim-patch:9.0.1617: charidx() result is not consistent with byteidx() (#23963)
Problem: charidx() and utf16idx() result is not consistent with byteidx(). Solution: When the index is equal to the length of the text return the lenght of the text instead of -1. (Yegappan Lakshmanan, closes vim/vim#12503) https://github.com/vim/vim/commit/577922b917e48285a7a312daf7b5bbc6e272939c Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'runtime/lua/vim/iter.lua')
0 files changed, 0 insertions, 0 deletions