Only use client for sizing when not detached, GitHub issue 2772.

pull/2802/head
nicm 2021-07-13 10:38:57 +00:00
parent 51915b9b0a
commit df3fe2aa72
1 changed files with 2 additions and 1 deletions

View File

@ -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;