Add -t to source-file, GitHub issue 3473.

This commit is contained in:
nicm
2023-09-15 06:31:49 +00:00
parent 8191c58737
commit d394293ba5
6 changed files with 58 additions and 28 deletions

View File

@ -237,8 +237,10 @@ cmdq_link_state(struct cmdq_state *state)
/* Make a copy of a state. */
struct cmdq_state *
cmdq_copy_state(struct cmdq_state *state)
cmdq_copy_state(struct cmdq_state *state, struct cmd_find_state *current)
{
if (current != NULL)
return (cmdq_new_state(current, &state->event, state->flags));
return (cmdq_new_state(&state->current, &state->event, state->flags));
}