comparison src/structs.h @ 16411:5b5c5daf57de v8.1.1210

patch 8.1.1210: support for user commands is spread out commit https://github.com/vim/vim/commit/ac9fb18020d7e8bf16d02d45fbb02cf47328aaf7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 27 13:04:13 2019 +0200 patch 8.1.1210: support for user commands is spread out Problem: Support for user commands is spread out. No good reason to make user commands optional. Solution: Move user command support to usercmd.c. Always enable the user_commands feature.
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 Apr 2019 13:15:07 +0200
parents 3b2db762a509
children 8c3a1bd270bb
comparison
equal deleted inserted replaced
16410:eb356c5e6287 16411:5b5c5daf57de
547 typedef struct expand 547 typedef struct expand
548 { 548 {
549 int xp_context; /* type of expansion */ 549 int xp_context; /* type of expansion */
550 char_u *xp_pattern; /* start of item to expand */ 550 char_u *xp_pattern; /* start of item to expand */
551 int xp_pattern_len; /* bytes in xp_pattern before cursor */ 551 int xp_pattern_len; /* bytes in xp_pattern before cursor */
552 #if defined(FEAT_USR_CMDS) && defined(FEAT_EVAL) && defined(FEAT_CMDL_COMPL) 552 #if defined(FEAT_EVAL) && defined(FEAT_CMDL_COMPL)
553 char_u *xp_arg; /* completion function */ 553 char_u *xp_arg; /* completion function */
554 sctx_T xp_script_ctx; /* SCTX for completion function */ 554 sctx_T xp_script_ctx; /* SCTX for completion function */
555 #endif 555 #endif
556 int xp_backslash; /* one of the XP_BS_ values */ 556 int xp_backslash; /* one of the XP_BS_ values */
557 #ifndef BACKSLASH_IN_FILENAME 557 #ifndef BACKSLASH_IN_FILENAME
2141 mapblock_T *(b_maphash[256]); 2141 mapblock_T *(b_maphash[256]);
2142 2142
2143 /* First abbreviation local to a buffer. */ 2143 /* First abbreviation local to a buffer. */
2144 mapblock_T *b_first_abbr; 2144 mapblock_T *b_first_abbr;
2145 #endif 2145 #endif
2146 #ifdef FEAT_USR_CMDS 2146 // User commands local to the buffer.
2147 /* User commands local to the buffer. */
2148 garray_T b_ucmds; 2147 garray_T b_ucmds;
2149 #endif
2150 /* 2148 /*
2151 * start and end of an operator, also used for '[ and '] 2149 * start and end of an operator, also used for '[ and ']
2152 */ 2150 */
2153 pos_T b_op_start; 2151 pos_T b_op_start;
2154 pos_T b_op_start_orig; /* used for Insstart_orig */ 2152 pos_T b_op_start_orig; /* used for Insstart_orig */