Mercurial > vim
diff src/structs.h @ 17085:620e9011b685 v8.1.1542
patch 8.1.1542: an OptionSet autocommand does not get enough info
commit https://github.com/vim/vim/commit/d7c968794710f338d491072171df48f96612cf72
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 15 17:12:48 2019 +0200
patch 8.1.1542: an OptionSet autocommand does not get enough info
Problem: An OptionSet autocommand does not get enough info.
Solution: Add v:option_command, v:option_oldlocal and v:option_oldglobal.
(Latrice Wilgus, closes #4118)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 15 Jun 2019 17:15:05 +0200 |
parents | 221d4b82bc0b |
children | 94007c802045 |
line wrap: on
line diff
--- a/src/structs.h +++ b/src/structs.h @@ -1369,12 +1369,16 @@ struct dictitem_S }; typedef struct dictitem_S dictitem_T; -/* A dictitem with a 16 character key (plus NUL). */ +/* + * A dictitem with a 16 character key (plus NUL). This is an efficient way to + * have a fixed-size dictitem. + */ +#define DICTITEM16_KEY_LEN 16 struct dictitem16_S { typval_T di_tv; /* type and value of the variable */ char_u di_flags; /* flags (only used for variable) */ - char_u di_key[17]; /* key */ + char_u di_key[DICTITEM16_KEY_LEN + 1]; /* key */ }; typedef struct dictitem16_S dictitem16_T;