summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-02-22 20:19:16 +0000
committernicm <nicm@openbsd.org>2010-02-22 20:19:16 +0000
commitdc68b6a8da3e1ab294546897d2ec267570ca0ff4 (patch)
tree45a6b8252e308b3d44e57f759eae8e777bd44eb3 /usr.bin
parentDon't attempt to repost the video hardware. There are quite a few machines (diff)
downloadwireguard-openbsd-dc68b6a8da3e1ab294546897d2ec267570ca0ff4.tar.xz
wireguard-openbsd-dc68b6a8da3e1ab294546897d2ec267570ca0ff4.zip
Display -t argument to new-session, from Tiago Cunha.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/cmd-new-session.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-new-session.c b/usr.bin/tmux/cmd-new-session.c
index 5582849d8d0..1b9ece82998 100644
--- a/usr.bin/tmux/cmd-new-session.c
+++ b/usr.bin/tmux/cmd-new-session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-new-session.c,v 1.27 2010/02/06 23:22:27 nicm Exp $ */
+/* $OpenBSD: cmd-new-session.c,v 1.28 2010/02/22 20:19:16 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -324,10 +324,12 @@ cmd_new_session_print(struct cmd *self, char *buf, size_t len)
return (off);
if (off < len && data->flag_detached)
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)
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)
off += cmd_prarg(buf + off, len - off, " ", data->cmd);
return (off);