0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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)
This commit is contained in:
Bram Moolenaar 2012-07-10 19:25:10 +02:00
parent 89af439409
commit dfef15481d
2 changed files with 9 additions and 1 deletions

View File

@ -5845,8 +5845,14 @@ uc_split_args(arg, lenp)
}
else
{
#ifdef FEAT_MBYTE
int charlen = (*mb_ptr2len)(p);
len += charlen;
p += charlen;
#else
++len;
++p;
#endif
}
}
@ -5889,7 +5895,7 @@ uc_split_args(arg, lenp)
}
else
{
*q++ = *p++;
MB_COPY_CHAR(p, q);
}
}
*q++ = '"';

View File

@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
600,
/**/
599,
/**/