diff options
author | 2019-06-18 11:08:42 +0000 | |
---|---|---|
committer | 2019-06-18 11:08:42 +0000 | |
commit | 780ca620f1c716c2970da67fa9e9172129a7e3d1 (patch) | |
tree | 044e1e90945d435fef72b6aaed82bd82899f9fce /usr.bin/tmux/cmd-queue.c | |
parent | Ensure the length passed to ffs_truncate() is within bounds before calling (diff) | |
download | wireguard-openbsd-780ca620f1c716c2970da67fa9e9172129a7e3d1.tar.xz wireguard-openbsd-780ca620f1c716c2970da67fa9e9172129a7e3d1.zip |
Add a cmdq_continue function rather than twiddling the flag directly.
Diffstat (limited to 'usr.bin/tmux/cmd-queue.c')
-rw-r--r-- | usr.bin/tmux/cmd-queue.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-queue.c b/usr.bin/tmux/cmd-queue.c index a1683aa35fb..f38907870b5 100644 --- a/usr.bin/tmux/cmd-queue.c +++ b/usr.bin/tmux/cmd-queue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-queue.c,v 1.73 2019/05/31 21:41:17 nicm Exp $ */ +/* $OpenBSD: cmd-queue.c,v 1.74 2019/06/18 11:08:42 nicm Exp $ */ /* * Copyright (c) 2013 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -156,6 +156,13 @@ cmdq_insert_hook(struct session *s, struct cmdq_item *item, free(name); } +/* Continue processing command queue. */ +void +cmdq_continue(struct cmdq_item *item) +{ + item->flags &= ~CMDQ_WAITING; +} + /* Remove an item. */ static void cmdq_remove(struct cmdq_item *item) |