mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
parent
ce9367c254
commit
2963533fe1
@ -5266,8 +5266,7 @@ static void ex_command(exarg_T *eap)
|
||||
} else if (!ASCII_ISUPPER(*name)) {
|
||||
EMSG(_("E183: User defined commands must start with an uppercase letter"));
|
||||
return;
|
||||
} else if ((name_len == 1 && *name == 'X')
|
||||
|| (name_len <= 4 && STRNCMP(name, "Next", name_len) == 0)) {
|
||||
} else if (name_len <= 4 && STRNCMP(name, "Next", name_len) == 0) {
|
||||
EMSG(_("E841: Reserved name, cannot be used for user defined command"));
|
||||
return;
|
||||
} else {
|
||||
|
@ -201,7 +201,6 @@ func Test_CmdErrors()
|
||||
call assert_fails('com! docmd :', 'E183:')
|
||||
call assert_fails('com! \<Tab> :', 'E182:')
|
||||
call assert_fails('com! _ :', 'E182:')
|
||||
call assert_fails('com! X :', 'E841:')
|
||||
call assert_fails('com! - DoCmd :', 'E175:')
|
||||
call assert_fails('com! -xxx DoCmd :', 'E181:')
|
||||
call assert_fails('com! -addr DoCmd :', 'E179:')
|
||||
|
Loading…
Reference in New Issue
Block a user