Skip to content

Commit e3f5b68

Browse files
committed
updated for version 7.3.600
Problem: <f-args> is not expanded properly with DBCS encoding. Solution: Skip over character instead of byte. (Yukihiro Nakadaira)
1 parent 5a3b425 commit e3f5b68

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/ex_docmd.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5845,8 +5845,14 @@ uc_split_args(arg, lenp)
58455845
}
58465846
else
58475847
{
5848+
#ifdef FEAT_MBYTE
5849+
int charlen = (*mb_ptr2len)(p);
5850+
len += charlen;
5851+
p += charlen;
5852+
#else
58485853
++len;
58495854
++p;
5855+
#endif
58505856
}
58515857
}
58525858

@@ -5889,7 +5895,7 @@ uc_split_args(arg, lenp)
58895895
}
58905896
else
58915897
{
5892-
*q++ = *p++;
5898+
MB_COPY_CHAR(p, q);
58935899
}
58945900
}
58955901
*q++ = '"';

src/version.c

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

715715
static int included_patches[] =
716716
{ /* Add new patch number below this line */
717+
/**/
718+
600,
717719
/**/
718720
599,
719721
/**/

0 commit comments

Comments
 (0)