0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.2.430

Problem:    The ++bad argument is handled wrong, resulting in an invalid
            memory access.
Solution:   Use the bad_char field only for the replacement character, add
            bad_char_idx to store the position. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar
2010-05-14 20:41:05 +02:00
parent 2efbc66e26
commit 9c0044df7c
4 changed files with 10 additions and 7 deletions

View File

@@ -1152,7 +1152,8 @@ struct exarg
int force_ff; /* ++ff= argument (index in cmd[]) */
#ifdef FEAT_MBYTE
int force_enc; /* ++enc= argument (index in cmd[]) */
int bad_char; /* ++bad= argument (index in cmd[]) */
int bad_char_idx; /* ++bad= argument (index in cmd[]) */
int bad_char; /* BAD_KEEP, BAD_DROP or replacement char */
#endif
#ifdef FEAT_USR_CMDS
int useridx; /* user command index */