From 9225efbc96378375139fef343f6ee88bc266013c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 30 Jul 2007 20:32:53 +0000 Subject: [PATCH] updated for version 7.1-046 --- src/regexp.c | 9 ++++++++- src/version.c | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/regexp.c b/src/regexp.c index bf0f67a03..071663f66 100644 --- a/src/regexp.c +++ b/src/regexp.c @@ -7014,7 +7014,14 @@ vim_regsub_both(source, dest, copy, magic, backslash) #ifdef FEAT_MBYTE if (has_mbyte) { - int l = mb_ptr2len(s) - 1; + int l; + + /* Copy composing characters separately, one + * at a time. */ + if (enc_utf8) + l = utf_ptr2len(s) - 1; + else + l = mb_ptr2len(s) - 1; s += l; len -= l; diff --git a/src/version.c b/src/version.c index c4e1de31f..65fa188c0 100644 --- a/src/version.c +++ b/src/version.c @@ -666,6 +666,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 46, /**/ 45, /**/ -- 2.50.1