mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 17:39:09 +00:00
Save next item after firing command in case it has added to the queue.
This commit is contained in:
parent
0a1a88d63c
commit
85671a5bed
@ -180,8 +180,6 @@ cmdq_continue(struct cmd_q *cmdq)
|
|||||||
cmdq->cmd = TAILQ_NEXT(cmdq->cmd, qentry);
|
cmdq->cmd = TAILQ_NEXT(cmdq->cmd, qentry);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
next = TAILQ_NEXT(cmdq->item, qentry);
|
|
||||||
|
|
||||||
while (cmdq->cmd != NULL) {
|
while (cmdq->cmd != NULL) {
|
||||||
cmd_print(cmdq->cmd, s, sizeof s);
|
cmd_print(cmdq->cmd, s, sizeof s);
|
||||||
log_debug("cmdq %p: %s (client %d)", cmdq, s,
|
log_debug("cmdq %p: %s (client %d)", cmdq, s,
|
||||||
@ -213,6 +211,7 @@ cmdq_continue(struct cmd_q *cmdq)
|
|||||||
|
|
||||||
cmdq->cmd = TAILQ_NEXT(cmdq->cmd, qentry);
|
cmdq->cmd = TAILQ_NEXT(cmdq->cmd, qentry);
|
||||||
}
|
}
|
||||||
|
next = TAILQ_NEXT(cmdq->item, qentry);
|
||||||
|
|
||||||
TAILQ_REMOVE(&cmdq->queue, cmdq->item, qentry);
|
TAILQ_REMOVE(&cmdq->queue, cmdq->item, qentry);
|
||||||
cmd_list_free(cmdq->item->cmdlist);
|
cmd_list_free(cmdq->item->cmdlist);
|
||||||
|
Loading…
Reference in New Issue
Block a user