From 0df110269804d128a1a4b00849b0b82bc71548a7 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 19 May 2011 14:30:16 +0200 Subject: updated for version 7.3.192 Problem: Ex command ":s/ \?/ /g" splits multi-byte characters into bytes. (Dominique Pelle) Solution: Advance over whole character instead of one byte. --- src/ex_cmds.c | 10 +++++++++- src/version.c | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 9d2bdc798..64c1371bd 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -4625,7 +4625,15 @@ do_sub(eap) * for a match in this line again. */ skip_match = TRUE; else - ++matchcol; /* search for a match at next column */ + { + /* search for a match at next column */ +#ifdef FEAT_MBYTE + if (has_mbyte) + matchcol += mb_ptr2len(sub_firstline + matchcol); + else +#endif + ++matchcol; + } goto skip; } diff --git a/src/version.c b/src/version.c index a14c43de6..94f1a95d6 100644 --- a/src/version.c +++ b/src/version.c @@ -709,6 +709,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 192, /**/ 191, /**/ -- cgit v1.2.1