mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-12 17:08:14 +01:00
Display -t argument to new-session, from Tiago Cunha.
This commit is contained in:
parent
24634b6281
commit
25211020bf
@ -324,10 +324,12 @@ cmd_new_session_print(struct cmd *self, char *buf, size_t len)
|
|||||||
return (off);
|
return (off);
|
||||||
if (off < len && data->flag_detached)
|
if (off < len && data->flag_detached)
|
||||||
off += xsnprintf(buf + off, len - off, " -d");
|
off += xsnprintf(buf + off, len - off, " -d");
|
||||||
if (off < len && data->newname != NULL)
|
|
||||||
off += cmd_prarg(buf + off, len - off, " -s ", data->newname);
|
|
||||||
if (off < len && data->winname != NULL)
|
if (off < len && data->winname != NULL)
|
||||||
off += cmd_prarg(buf + off, len - off, " -n ", data->winname);
|
off += cmd_prarg(buf + off, len - off, " -n ", data->winname);
|
||||||
|
if (off < len && data->newname != NULL)
|
||||||
|
off += cmd_prarg(buf + off, len - off, " -s ", data->newname);
|
||||||
|
if (off < len && data->target != NULL)
|
||||||
|
off += cmd_prarg(buf + off, len - off, " -t ", data->target);
|
||||||
if (off < len && data->cmd != NULL)
|
if (off < len && data->cmd != NULL)
|
||||||
off += cmd_prarg(buf + off, len - off, " ", data->cmd);
|
off += cmd_prarg(buf + off, len - off, " ", data->cmd);
|
||||||
return (off);
|
return (off);
|
||||||
|
Loading…
Reference in New Issue
Block a user