summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-12-13 20:09:08 +0000
committerBram Moolenaar <Bram@vim.org>2005-12-13 20:09:08 +0000
commitb2c2efa53ae0d7dd642ff132f7d374e2b517303d (patch)
tree9b33634f146fb36f8502c7447f2ebcdb02bbf48f /src
parentc6d8db78b1e5d2edefd76f03b97c3a88f0be2c73 (diff)
updated for version 7.0169v7.0169
Diffstat (limited to 'src')
-rw-r--r--src/eval.c5
-rw-r--r--src/ex_cmds.h5
2 files changed, 8 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c
index fe3c5a7ad9..fb8e005868 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -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;
diff --git a/src/ex_cmds.h b/src/ex_cmds.h
index c5adaeb1bf..87c9e6a232 100644
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -996,9 +996,10 @@ struct exarg
int amount; /* number of '>' or '<' for shift command */
int regname; /* register name (NUL if none) */
int force_bin; /* 0, FORCE_BIN or FORCE_NOBIN */
- int force_ff; /* forced 'fileformat' (index in cmd[]) */
+ int force_ff; /* ++ff= argument (index in cmd[]) */
#ifdef FEAT_MBYTE
- int force_enc; /* forced 'encoding' (index in cmd[]) */
+ int force_enc; /* ++enc= argument (index in cmd[]) */
+ int bad_char; /* ++bad= argument (index in cmd[]) */
#endif
#ifdef FEAT_USR_CMDS
int useridx; /* user command index */