diff --git a/src/regexp.c b/src/regexp.c index bae547cd6..961796be5 100644 --- a/src/regexp.c +++ b/src/regexp.c @@ -4782,7 +4782,8 @@ regmatch(scan) /* When only a composing char is given match at any * position where that composing char appears. */ status = RA_NOMATCH; - for (i = 0; reginput[i] != NUL; i += utf_char2len(inpc)) + for (i = 0; reginput[i] != NUL; + i += utf_ptr2len(reginput + i)) { inpc = mb_ptr2char(reginput + i); if (!utf_iscomposing(inpc)) diff --git a/src/version.c b/src/version.c index f4ed01a64..6156c3731 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 685, /**/ 684, /**/