Skip to content

Commit

Permalink
Only use client for sizing when not detached, GitHub issue 2772.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Jul 13, 2021
1 parent 51915b9 commit df3fe2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd-new-session.c
Expand Up @@ -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;
Expand Down

0 comments on commit df3fe2a

Please sign in to comment.