summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-07-13 10:38:58 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-07-13 10:38:58 +0000
commit275bb876fd7657992c77d1cf2a2722961018433e (patch)
treec244cb9b60e6e419ca892be0c16db2fc1c0bb8dd /usr.bin/tmux
parentddba61de1aa2dfbebee3b42b3f96db59f191f048 (diff)
Only use client for sizing when not detached, GitHub issue 2772.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/cmd-new-session.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-new-session.c b/usr.bin/tmux/cmd-new-session.c
index 134663cedde..726d3844172 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.137 2021/07/06 08:18:38 nicm Exp $ */
+/* $OpenBSD: cmd-new-session.c,v 1.138 2021/07/13 10:38:57 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -280,7 +280,8 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item)
memset(&sc, 0, sizeof sc);
sc.item = item;
sc.s = s;
- sc.tc = c;
+ if (!detached)
+ sc.tc = c;
sc.name = args_get(args, 'n');
sc.argc = args->argc;