ex_docmd: Remove :Ni! easter egg

This commit is contained in:
ZyX 2017-04-16 20:27:20 +03:00
parent a894c82def
commit 87e107d921

View File

@ -1726,11 +1726,7 @@ static char_u * do_one_cmd(char_u **cmdlinep,
errormsg = (char_u *)_("E464: Ambiguous use of user-defined command"); errormsg = (char_u *)_("E464: Ambiguous use of user-defined command");
goto doend; goto doend;
} }
/* Check for wrong commands. */ // Check for wrong commands.
if (*p == '!' && ea.cmd[1] == 0151 && ea.cmd[0] == 78) {
errormsg = uc_fun_cmd();
goto doend;
}
if (ea.cmdidx == CMD_SIZE) { if (ea.cmdidx == CMD_SIZE) {
if (!ea.skip) { if (!ea.skip) {
STRCPY(IObuff, _("E492: Not an editor command")); STRCPY(IObuff, _("E492: Not an editor command"));
@ -4961,20 +4957,6 @@ static void uc_list(char_u *name, size_t name_len)
MSG(_("No user-defined commands found")); MSG(_("No user-defined commands found"));
} }
static char_u *uc_fun_cmd(void)
{
static char_u fcmd[] = {0x84, 0xaf, 0x60, 0xb9, 0xaf, 0xb5, 0x60, 0xa4,
0xa5, 0xad, 0xa1, 0xae, 0xa4, 0x60, 0xa1, 0x60,
0xb3, 0xa8, 0xb2, 0xb5, 0xa2, 0xa2, 0xa5, 0xb2,
0xb9, 0x7f, 0};
int i;
for (i = 0; fcmd[i]; ++i)
IObuff[i] = fcmd[i] - 0x40;
IObuff[i] = 0;
return IObuff;
}
static int uc_scan_attr(char_u *attr, size_t len, uint32_t *argt, long *def, static int uc_scan_attr(char_u *attr, size_t len, uint32_t *argt, long *def,
int *flags, int * compl, char_u **compl_arg, int *flags, int * compl, char_u **compl_arg,
int *addr_type_arg) int *addr_type_arg)