mirror of
https://github.com/vim/vim.git
synced 2025-10-19 08:04:27 -04:00
updated for version 7.0015
This commit is contained in:
@@ -3376,6 +3376,16 @@ get_cmd_args(char *prog, char *cmdline, char ***argvp, char **tofree)
|
||||
{
|
||||
if (pnew != NULL)
|
||||
*pnew++ = *p;
|
||||
#ifdef FEAT_MBYTE
|
||||
/* Can't use mb_* functions, because 'encoding' is not
|
||||
* initialized yet here. */
|
||||
if (IsDBCSLeadByte(*p))
|
||||
{
|
||||
++p;
|
||||
if (pnew != NULL)
|
||||
*pnew++ = *p;
|
||||
}
|
||||
#endif
|
||||
++p;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user