diff options
author | nicm <nicm> | 2023-09-15 06:31:49 +0000 |
---|---|---|
committer | nicm <nicm> | 2023-09-15 06:31:49 +0000 |
commit | d394293ba59fc932085eb8c01592822a9b1ec1f7 (patch) | |
tree | ca6dc2da2c8988cd6d7694dc674051cbc135669b /cmd-queue.c | |
parent | 8191c587378b0bb6f9f6818b1d721cea56fe08ff (diff) |
Add -t to source-file, GitHub issue 3473.
Diffstat (limited to 'cmd-queue.c')
-rw-r--r-- | cmd-queue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd-queue.c b/cmd-queue.c index ce6cab38..e197cd28 100644 --- a/cmd-queue.c +++ b/cmd-queue.c @@ -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)); } |