Skip to content

Commit

Permalink
exclude some cmds from installable_command_check
Browse files Browse the repository at this point in the history
"if" and labels are not needed to go via ae00.
  • Loading branch information
stsp committed Mar 14, 2024
1 parent 44cded9 commit 8d05b0d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -4494,11 +4494,6 @@ static void exec_cmd(int call)

while (cmd[0] != '\0')
{
if (!call && installable_command_check(cmd, cmd_args) == 0)
{
cmd[0] = '\0';
break;
}
if (stricmp(cmd, "if") == 0)
{
perform_if();
Expand All @@ -4513,6 +4508,11 @@ static void exec_cmd(int call)
perform_change_drive();
else
{
if (!call && installable_command_check(cmd, cmd_args) == 0)
{
cmd[0] = '\0';
break;
}
for (c = 0; c < CMD_TABLE_COUNT; c++)
{
if (stricmp(cmd, cmd_table[c].cmd_name) == 0)
Expand Down

0 comments on commit 8d05b0d

Please sign in to comment.