diff options
author | vimboss <devnull@localhost> | 2007-07-30 20:32:53 +0000 |
---|---|---|
committer | vimboss <devnull@localhost> | 2007-07-30 20:32:53 +0000 |
commit | 4f76d3eee9c5b9d71fab3ca16430b24e910181c8 (patch) | |
tree | bc4e43bcda9db54591c92167af7141d6a0d04379 | |
parent | 75a7454a1910d965f76c8b772648eb7b557af802 (diff) | |
download | vim-4f76d3eee9c5b9d71fab3ca16430b24e910181c8.tar.gz |
-rw-r--r-- | src/regexp.c | 9 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/regexp.c b/src/regexp.c index bf0f67a0..071663f6 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 c4e1de31..65fa188c 100644 --- a/src/version.c +++ b/src/version.c @@ -667,6 +667,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 46, +/**/ 45, /**/ 44, |