diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-06-03 21:02:26 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-06-03 21:02:26 +0100 |
commit | d3f0c72e20069f99607011861f326faf14165fa7 (patch) | |
tree | 993e0477d010ea780f73ac6fa46bf24968da2877 /cmd-new-session.c | |
parent | f6933e43c2f5fa720307bab84797bd616678871f (diff) | |
parent | 4ca1de1b8bc10dca47d2cf7399df41845c902c9e (diff) | |
download | rtmux-d3f0c72e20069f99607011861f326faf14165fa7.tar.gz rtmux-d3f0c72e20069f99607011861f326faf14165fa7.tar.bz2 rtmux-d3f0c72e20069f99607011861f326faf14165fa7.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r-- | cmd-new-session.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c index 559c268c..e0540815 100644 --- a/cmd-new-session.c +++ b/cmd-new-session.c @@ -39,8 +39,8 @@ const struct cmd_entry cmd_new_session_entry = { .name = "new-session", .alias = "new", - .args = { "Ac:dDEF:n:Ps:t:x:y:", 0, -1 }, - .usage = "[-AdDEP] [-c start-directory] [-F format] [-n window-name] " + .args = { "Ac:dDEF:n:Ps:t:x:Xy:", 0, -1 }, + .usage = "[-AdDEPX] [-c start-directory] [-F format] [-n window-name] " "[-s session-name] " CMD_TARGET_SESSION_USAGE " [-x width] " "[-y height] [command]", @@ -105,7 +105,8 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item) if (args_has(args, 'A')) { retval = cmd_attach_session(item, newname, args_has(args, 'D'), - 0, NULL, args_has(args, 'E')); + args_has(args, 'X'), 0, NULL, + args_has(args, 'E')); free(newname); return (retval); } |