comparison 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
comparison
equal deleted inserted replaced
17084:06dcb09b3b07 17085:620e9011b685
1367 char_u di_flags; /* flags (only used for variable) */ 1367 char_u di_flags; /* flags (only used for variable) */
1368 char_u di_key[1]; /* key (actually longer!) */ 1368 char_u di_key[1]; /* key (actually longer!) */
1369 }; 1369 };
1370 typedef struct dictitem_S dictitem_T; 1370 typedef struct dictitem_S dictitem_T;
1371 1371
1372 /* A dictitem with a 16 character key (plus NUL). */ 1372 /*
1373 * A dictitem with a 16 character key (plus NUL). This is an efficient way to
1374 * have a fixed-size dictitem.
1375 */
1376 #define DICTITEM16_KEY_LEN 16
1373 struct dictitem16_S 1377 struct dictitem16_S
1374 { 1378 {
1375 typval_T di_tv; /* type and value of the variable */ 1379 typval_T di_tv; /* type and value of the variable */
1376 char_u di_flags; /* flags (only used for variable) */ 1380 char_u di_flags; /* flags (only used for variable) */
1377 char_u di_key[17]; /* key */ 1381 char_u di_key[DICTITEM16_KEY_LEN + 1]; /* key */
1378 }; 1382 };
1379 typedef struct dictitem16_S dictitem16_T; 1383 typedef struct dictitem16_S dictitem16_T;
1380 1384
1381 #define DI_FLAGS_RO 1 /* "di_flags" value: read-only variable */ 1385 #define DI_FLAGS_RO 1 /* "di_flags" value: read-only variable */
1382 #define DI_FLAGS_RO_SBX 2 /* "di_flags" value: read-only in the sandbox */ 1386 #define DI_FLAGS_RO_SBX 2 /* "di_flags" value: read-only in the sandbox */