mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
Ignore running command when checking for no-hooks flag if it is blocked.
GitHub issue 2483.
This commit is contained in:
parent
fd5c3e6122
commit
33046ecee2
@ -768,7 +768,11 @@ cmdq_running(struct client *c)
|
||||
{
|
||||
struct cmdq_list *queue = cmdq_get(c);
|
||||
|
||||
return (queue->item);
|
||||
if (queue->item == NULL)
|
||||
return (NULL);
|
||||
if (queue->item->flags & CMDQ_WAITING)
|
||||
return (NULL);
|
||||
return (queue->item);
|
||||
}
|
||||
|
||||
/* Print a guard line. */
|
||||
|
Loading…
Reference in New Issue
Block a user