mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.0169
This commit is contained in:
@@ -15712,6 +15712,8 @@ set_cmdarg(eap, oldarg)
|
||||
# ifdef FEAT_MBYTE
|
||||
if (eap->force_enc != 0)
|
||||
len += (unsigned)STRLEN(eap->cmd + eap->force_enc) + 7;
|
||||
if (eap->bad_char != 0)
|
||||
len += (unsigned)STRLEN(eap->cmd + eap->bad_char) + 7;
|
||||
# endif
|
||||
|
||||
newval = alloc(len + 1);
|
||||
@@ -15731,6 +15733,9 @@ set_cmdarg(eap, oldarg)
|
||||
if (eap->force_enc != 0)
|
||||
sprintf((char *)newval + STRLEN(newval), " ++enc=%s",
|
||||
eap->cmd + eap->force_enc);
|
||||
if (eap->bad_char != 0)
|
||||
sprintf((char *)newval + STRLEN(newval), " ++bad=%s",
|
||||
eap->cmd + eap->bad_char);
|
||||
# endif
|
||||
vimvars[VV_CMDARG].vv_str = newval;
|
||||
return oldval;
|
||||
|
Reference in New Issue
Block a user