mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 03:16:31 +00:00
vim-patch:8.1.1241: Ex command info contains confusing information
Problem: Ex command info contains confusing information. Solution: When using the NOTADR flag use ADDR_OTHER for the address type. Cleanup code using NOTADR. Check for errors in create_cmdidxs.vim. Adjust Makefile to see the errors.b731689e85
Use Lua's "assert()" to make an invalid command definition a compilation error. Misc changes: Remove 'RESTRICT' flag. Neovim does not support "restricted" mode since commit7777532ceb
. TODO: Do not generate files before Lua assertions so that CMake always runs the generator script if the previous build has an invalid command definition.
This commit is contained in:
@@ -51,17 +51,16 @@
|
||||
#define NOTRLCOM 0x800 // no trailing comment allowed
|
||||
#define ZEROR 0x1000 // zero line number allowed
|
||||
#define USECTRLV 0x2000 // do not remove CTRL-V from argument
|
||||
#define NOTADR 0x4000 // number before command is not an address
|
||||
#define EDITCMD 0x8000 // allow "+command" argument
|
||||
#define BUFNAME 0x10000 // accepts buffer name
|
||||
#define BUFUNL 0x20000 // accepts unlisted buffer too
|
||||
#define ARGOPT 0x40000 // allow "++opt=val" argument
|
||||
#define SBOXOK 0x80000 // allowed in the sandbox
|
||||
#define CMDWIN 0x100000 // allowed in cmdline window; when missing
|
||||
#define EDITCMD 0x4000 // allow "+command" argument
|
||||
#define BUFNAME 0x8000 // accepts buffer name
|
||||
#define BUFUNL 0x10000L // accepts unlisted buffer too
|
||||
#define ARGOPT 0x20000L // allow "++opt=val" argument
|
||||
#define SBOXOK 0x40000L // allowed in the sandbox
|
||||
#define CMDWIN 0x80000L // allowed in cmdline window; when missing
|
||||
// disallows editing another buffer when
|
||||
// curbuf_lock is set
|
||||
#define MODIFY 0x200000 // forbidden in non-'modifiable' buffer
|
||||
#define EXFLAGS 0x400000 // allow flags after count in argument
|
||||
#define MODIFY 0x100000L // forbidden in non-'modifiable' buffer
|
||||
#define EXFLAGS 0x200000L // allow flags after count in argument
|
||||
#define FILES (XFILE | EXTRA) // multiple extra files allowed
|
||||
#define WORD1 (EXTRA | NOSPC) // one extra word allowed
|
||||
#define FILE1 (FILES | NOSPC) // 1 file allowed, defaults to current file
|
||||
@@ -153,7 +152,7 @@ struct exarg {
|
||||
int addr_count; ///< the number of addresses given
|
||||
linenr_T line1; ///< the first line number
|
||||
linenr_T line2; ///< the second line number or count
|
||||
int addr_type; ///< type of the count/range
|
||||
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
|
||||
|
Reference in New Issue
Block a user