mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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.
This commit is contained in:
@@ -1753,13 +1753,9 @@ EX(CMD_tilde, "~", do_sub,
|
||||
ADDR_LINES),
|
||||
|
||||
#ifndef DO_DECLARE_EXCMD
|
||||
#ifdef FEAT_USR_CMDS
|
||||
CMD_SIZE, /* MUST be after all real commands! */
|
||||
CMD_USER = -1, /* User-defined command */
|
||||
CMD_USER_BUF = -2 /* User-defined command local to buffer */
|
||||
#else
|
||||
CMD_SIZE /* MUST be the last one! */
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -1795,9 +1791,7 @@ struct exarg
|
||||
int force_ff; /* ++ff= argument (first char of argument) */
|
||||
int force_enc; /* ++enc= argument (index in cmd[]) */
|
||||
int bad_char; /* BAD_KEEP, BAD_DROP or replacement byte */
|
||||
#ifdef FEAT_USR_CMDS
|
||||
int useridx; /* user command index */
|
||||
#endif
|
||||
char *errmsg; /* returned error message */
|
||||
char_u *(*getline)(int, void *, int);
|
||||
void *cookie; /* argument for getline() */
|
||||
|
Reference in New Issue
Block a user