Skip to content

Commit b1d4f04

Browse files
committed
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.
1 parent f697b48 commit b1d4f04

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/ex_cmds.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4625,7 +4625,15 @@ do_sub(eap)
46254625
* for a match in this line again. */
46264626
skip_match = TRUE;
46274627
else
4628-
++matchcol; /* search for a match at next column */
4628+
{
4629+
/* search for a match at next column */
4630+
#ifdef FEAT_MBYTE
4631+
if (has_mbyte)
4632+
matchcol += mb_ptr2len(sub_firstline + matchcol);
4633+
else
4634+
#endif
4635+
++matchcol;
4636+
}
46294637
goto skip;
46304638
}
46314639

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,8 @@ static char *(features[]) =
709709

710710
static int included_patches[] =
711711
{ /* Add new patch number below this line */
712+
/**/
713+
192,
712714
/**/
713715
191,
714716
/**/

0 commit comments

Comments
 (0)