summaryrefslogtreecommitdiff
path: root/src/ex_cmds.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-05-16 13:26:25 +0200
committerBram Moolenaar <Bram@vim.org>2010-05-16 13:26:25 +0200
commit34b4daf2b78c5d9d23cf8e99af1d51522ac2ab0c (patch)
tree81a4f48751977fa39a3f373f4409285caa765ffd /src/ex_cmds.h
parent413756470917e76295643a32b0f6f21b35b2e9ae (diff)
downloadvim-git-34b4daf2b78c5d9d23cf8e99af1d51522ac2ab0c.tar.gz
updated for version 7.2.435
Problem: Crash when using bad_char_idx uninitialized. (Patrick Texier) Solution: Don't use bad_char_idx, reproduce the ++bad argument from bad_char.
Diffstat (limited to 'src/ex_cmds.h')
-rw-r--r--src/ex_cmds.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ex_cmds.h b/src/ex_cmds.h
index eb472975e..488feae80 100644
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -1152,8 +1152,7 @@ struct exarg
int force_ff; /* ++ff= argument (index in cmd[]) */
#ifdef FEAT_MBYTE
int force_enc; /* ++enc= argument (index in cmd[]) */
- int bad_char_idx; /* ++bad= argument (index in cmd[]) */
- int bad_char; /* BAD_KEEP, BAD_DROP or replacement char */
+ int bad_char; /* BAD_KEEP, BAD_DROP or replacement byte */
#endif
#ifdef FEAT_USR_CMDS
int useridx; /* user command index */