]> granicus.if.org Git - vim/commitdiff
updated for version 7.1-046 v7.1.046
authorBram Moolenaar <Bram@vim.org>
Mon, 30 Jul 2007 20:32:53 +0000 (20:32 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 30 Jul 2007 20:32:53 +0000 (20:32 +0000)
src/regexp.c
src/version.c

index bf0f67a030096ae2e7e5419acc27e152d8f6e411..071663f66fbcda894a03c258ab04cef4fbc7fd68 100644 (file)
@@ -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;
index c4e1de31f5b661152b1ecdbf16a703034e567252..65fa188c08d795cc0f5dd979cb91f860c87ba793 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    46,
 /**/
     45,
 /**/