mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
There is no reason wait-for has to be restricted to outside tmux.
This commit is contained in:
@ -170,7 +170,7 @@ cmd_wait_for_wait(struct cmdq_item *item, const char *name,
|
|||||||
struct client *c = item->client;
|
struct client *c = item->client;
|
||||||
struct wait_item *wi;
|
struct wait_item *wi;
|
||||||
|
|
||||||
if (c == NULL || c->session != NULL) {
|
if (c == NULL) {
|
||||||
cmdq_error(item, "not able to wait");
|
cmdq_error(item, "not able to wait");
|
||||||
return (CMD_RETURN_ERROR);
|
return (CMD_RETURN_ERROR);
|
||||||
}
|
}
|
||||||
@ -198,7 +198,7 @@ cmd_wait_for_lock(struct cmdq_item *item, const char *name,
|
|||||||
{
|
{
|
||||||
struct wait_item *wi;
|
struct wait_item *wi;
|
||||||
|
|
||||||
if (item->client == NULL || item->client->session != NULL) {
|
if (item->client == NULL) {
|
||||||
cmdq_error(item, "not able to lock");
|
cmdq_error(item, "not able to lock");
|
||||||
return (CMD_RETURN_ERROR);
|
return (CMD_RETURN_ERROR);
|
||||||
}
|
}
|
||||||
|
2
tmux.1
2
tmux.1
@ -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
|
channel are made to wait until the channel is unlocked with
|
||||||
.Ic wait-for
|
.Ic wait-for
|
||||||
.Fl U .
|
.Fl U .
|
||||||
This command only works from outside
|
|
||||||
.Nm .
|
|
||||||
.El
|
.El
|
||||||
.Sh TERMINFO EXTENSIONS
|
.Sh TERMINFO EXTENSIONS
|
||||||
.Nm
|
.Nm
|
||||||
|
Reference in New Issue
Block a user