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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user