mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
patch 8.1.1680: the command table is not well aligned
Problem: The command table is not well aligned. Solution: Adjust indent.
This commit is contained in:
@@ -1751,7 +1751,7 @@ EXCMD(CMD_z, "z", ex_z,
|
||||
EX_RANGE|EX_WHOLEFOLD|EX_EXTRA|EX_FLAGS|EX_TRLBAR|EX_CMDWIN,
|
||||
ADDR_LINES),
|
||||
|
||||
/* commands that don't start with a lowercase letter */
|
||||
// commands that don't start with a lowercase letter
|
||||
EXCMD(CMD_bang, "!", ex_bang,
|
||||
EX_RANGE|EX_WHOLEFOLD|EX_BANG|EX_FILES|EX_CMDWIN,
|
||||
ADDR_LINES),
|
||||
@@ -1792,9 +1792,9 @@ EXCMD(CMD_tilde, "~", do_sub,
|
||||
#undef EXCMD
|
||||
|
||||
#ifndef DO_DECLARE_EXCMD
|
||||
CMD_SIZE, /* MUST be after all real commands! */
|
||||
CMD_USER = -1, /* User-defined command */
|
||||
CMD_USER_BUF = -2 /* User-defined command local to buffer */
|
||||
CMD_SIZE, // MUST be after all real commands!
|
||||
CMD_USER = -1, // User-defined command
|
||||
CMD_USER_BUF = -2 // User-defined command local to buffer
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -1802,40 +1802,40 @@ EXCMD(CMD_tilde, "~", do_sub,
|
||||
typedef enum CMD_index cmdidx_T;
|
||||
|
||||
/*
|
||||
* Arguments used for Ex commands.
|
||||
* Arguments used for an Ex command.
|
||||
*/
|
||||
struct exarg
|
||||
{
|
||||
char_u *arg; /* argument of the command */
|
||||
char_u *nextcmd; /* next command (NULL if none) */
|
||||
char_u *cmd; /* the name of the command (except for :make) */
|
||||
char_u **cmdlinep; /* pointer to pointer of allocated cmdline */
|
||||
cmdidx_T cmdidx; /* the index for the command */
|
||||
long argt; /* flags for the command */
|
||||
int skip; /* don't execute the command, only parse it */
|
||||
int forceit; /* TRUE if ! present */
|
||||
int addr_count; /* the number of addresses given */
|
||||
linenr_T line1; /* the first line number */
|
||||
linenr_T line2; /* the second line number or count */
|
||||
cmd_addr_T addr_type; /* type of the count/range */
|
||||
int flags; /* extra flags after count: EXFLAG_ */
|
||||
char_u *do_ecmd_cmd; /* +command arg to be used in edited file */
|
||||
linenr_T do_ecmd_lnum; /* the line number in an edited file */
|
||||
int append; /* TRUE with ":w >>file" command */
|
||||
int usefilter; /* TRUE with ":w !command" and ":r!command" */
|
||||
int amount; /* number of '>' or '<' for shift command */
|
||||
int regname; /* register name (NUL if none) */
|
||||
int force_bin; /* 0, FORCE_BIN or FORCE_NOBIN */
|
||||
int read_edit; /* ++edit argument */
|
||||
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 */
|
||||
int useridx; /* user command index */
|
||||
char *errmsg; /* returned error message */
|
||||
char_u *arg; // argument of the command
|
||||
char_u *nextcmd; // next command (NULL if none)
|
||||
char_u *cmd; // the name of the command (except for :make)
|
||||
char_u **cmdlinep; // pointer to pointer of allocated cmdline
|
||||
cmdidx_T cmdidx; // the index for the command
|
||||
long argt; // flags for the command
|
||||
int skip; // don't execute the command, only parse it
|
||||
int forceit; // TRUE if ! present
|
||||
int addr_count; // the number of addresses given
|
||||
linenr_T line1; // the first line number
|
||||
linenr_T line2; // the second line number or count
|
||||
cmd_addr_T addr_type; // type of the count/range
|
||||
int flags; // extra flags after count: EXFLAG_
|
||||
char_u *do_ecmd_cmd; // +command arg to be used in edited file
|
||||
linenr_T do_ecmd_lnum; // the line number in an edited file
|
||||
int append; // TRUE with ":w >>file" command
|
||||
int usefilter; // TRUE with ":w !command" and ":r!command"
|
||||
int amount; // number of '>' or '<' for shift command
|
||||
int regname; // register name (NUL if none)
|
||||
int force_bin; // 0, FORCE_BIN or FORCE_NOBIN
|
||||
int read_edit; // ++edit argument
|
||||
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
|
||||
int useridx; // user command index
|
||||
char *errmsg; // returned error message
|
||||
char_u *(*getline)(int, void *, int, int);
|
||||
void *cookie; /* argument for getline() */
|
||||
void *cookie; // argument for getline()
|
||||
#ifdef FEAT_EVAL
|
||||
struct condstack *cstack; /* condition stack for ":if" etc. */
|
||||
struct condstack *cstack; // condition stack for ":if" etc.
|
||||
#endif
|
||||
long verbose_save; // saved value of p_verbose
|
||||
int save_msg_silent; // saved value of msg_silent
|
||||
@@ -1845,12 +1845,12 @@ struct exarg
|
||||
#endif
|
||||
};
|
||||
|
||||
#define FORCE_BIN 1 /* ":edit ++bin file" */
|
||||
#define FORCE_NOBIN 2 /* ":edit ++nobin file" */
|
||||
#define FORCE_BIN 1 // ":edit ++bin file"
|
||||
#define FORCE_NOBIN 2 // ":edit ++nobin file"
|
||||
|
||||
/* Values for "flags" */
|
||||
#define EXFLAG_LIST 0x01 /* 'l': list */
|
||||
#define EXFLAG_NR 0x02 /* '#': number */
|
||||
#define EXFLAG_PRINT 0x04 /* 'p': print */
|
||||
// Values for "flags"
|
||||
#define EXFLAG_LIST 0x01 // 'l': list
|
||||
#define EXFLAG_NR 0x02 // '#': number
|
||||
#define EXFLAG_PRINT 0x04 // 'p': print
|
||||
|
||||
#endif
|
||||
|
@@ -777,6 +777,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1680,
|
||||
/**/
|
||||
1679,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user