diff options
author | nicm <nicm> | 2018-11-07 07:58:16 +0000 |
---|---|---|
committer | nicm <nicm> | 2018-11-07 07:58:16 +0000 |
commit | 7339845c01727b209b3b96e5b1d917129b2c8a83 (patch) | |
tree | dcc1b33d6025b5d47ae3ce253cf88c18ccff761e | |
parent | f9881b3b5de0c5ea8ee70dc95f5a5dd095e37bea (diff) | |
download | rtmux-7339845c01727b209b3b96e5b1d917129b2c8a83.tar.gz rtmux-7339845c01727b209b3b96e5b1d917129b2c8a83.tar.bz2 rtmux-7339845c01727b209b3b96e5b1d917129b2c8a83.zip |
There is no reason wait-for has to be restricted to outside tmux.
-rw-r--r-- | cmd-wait-for.c | 4 | ||||
-rw-r--r-- | tmux.1 | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/cmd-wait-for.c b/cmd-wait-for.c index 396548a7..33600eda 100644 --- a/cmd-wait-for.c +++ b/cmd-wait-for.c @@ -170,7 +170,7 @@ cmd_wait_for_wait(struct cmdq_item *item, const char *name, struct client *c = item->client; struct wait_item *wi; - if (c == NULL || c->session != NULL) { + if (c == NULL) { cmdq_error(item, "not able to wait"); return (CMD_RETURN_ERROR); } @@ -198,7 +198,7 @@ cmd_wait_for_lock(struct cmdq_item *item, const char *name, { struct wait_item *wi; - if (item->client == NULL || item->client->session != NULL) { + if (item->client == NULL) { cmdq_error(item, "not able to lock"); return (CMD_RETURN_ERROR); } @@ -4430,8 +4430,6 @@ is used, the channel is locked and any clients that try to lock the same channel are made to wait until the channel is unlocked with .Ic wait-for .Fl U . -This command only works from outside -.Nm . .El .Sh TERMINFO EXTENSIONS .Nm |