diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-05-14 20:41:05 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-05-14 20:41:05 +0200 |
commit | 9c0044df7c58f0afc74ed9afd034b55850758da1 (patch) | |
tree | 77f0abf481bdef1d272961642dcde19194010192 /src/ex_cmds.h | |
parent | 2efbc66e260a9988b5d66c68de940bff6fcdb954 (diff) | |
download | vim-git-9c0044df7c58f0afc74ed9afd034b55850758da1.tar.gz |
updated for version 7.2.430v7.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)
Diffstat (limited to 'src/ex_cmds.h')
-rw-r--r-- | src/ex_cmds.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ex_cmds.h b/src/ex_cmds.h index a5a9e1203..eb472975e 100644 --- a/src/ex_cmds.h +++ b/src/ex_cmds.h @@ -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 */ |