Move cmdq_state into cmd-queue.c.

This commit is contained in:
nicm
2020-04-13 14:46:04 +00:00
parent 9a65102bfc
commit adb76fd1ce
24 changed files with 99 additions and 89 deletions

6
menu.c
View File

@ -282,10 +282,10 @@ chosen:
break;
case CMD_PARSE_SUCCESS:
if (md->item != NULL)
m = &cmdq_get_state(md->item)->event.m;
event = cmdq_get_event(md->item);
else
m = NULL;
new_item = cmdq_get_command(pr->cmdlist, &md->fs, m, 0);
event = NULL;
new_item = cmdq_get_command(pr->cmdlist, &md->fs, event, 0);
cmd_list_free(pr->cmdlist);
cmdq_append(c, new_item);
break;