forked from aniani/vim
patch 9.0.1617: charidx() result is not consistent with byteidx()
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 #12503)
This commit is contained in:
committed by
Bram Moolenaar
parent
5bf042810b
commit
577922b917
@@ -695,6 +695,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1617,
|
||||
/**/
|
||||
1616,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user