artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bec32fa
)
Only use client for sizing when not detached, GitHub issue 2772.
author
nicm
<nicm@openbsd.org>
Tue, 13 Jul 2021 10:38:57 +0000
(10:38 +0000)
committer
nicm
<nicm@openbsd.org>
Tue, 13 Jul 2021 10:38:57 +0000
(10:38 +0000)
usr.bin/tmux/cmd-new-session.c
patch
|
blob
|
history
diff --git
a/usr.bin/tmux/cmd-new-session.c
b/usr.bin/tmux/cmd-new-session.c
index
134663c
..
726d384
100644
(file)
--- 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.13
7 2021/07/06 08:18:38
nicm Exp $ */
+/* $OpenBSD: cmd-new-session.c,v 1.13
8 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;