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:
parent
89af439409
commit
dfef15481d
@ -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++ = '"';
|
||||
|
@ -714,6 +714,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
600,
|
||||
/**/
|
||||
599,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user