From f7ae833b6dc45ec15213adf4c3b27fe08ffd2a86 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Fri, 26 Feb 2010 13:28:15 +0000 Subject: [PATCH] Sync OpenBSD patchset 650: Display -t argument to new-session, from Tiago Cunha. --- cmd-new-session.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd-new-session.c b/cmd-new-session.c index 2e061826..88bf87ab 100644 --- a/cmd-new-session.c +++ b/cmd-new-session.c @@ -1,4 +1,4 @@ -/* $Id: cmd-new-session.c,v 1.75 2010-02-08 18:29:32 tcunha Exp $ */ +/* $Id: cmd-new-session.c,v 1.76 2010-02-26 13:28:15 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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);