-/* $OpenBSD: cmd-attach-session.c,v 1.88 2022/05/30 12:48:57 nicm Exp $ */
+/* $OpenBSD: cmd-attach-session.c,v 1.89 2022/07/06 08:40:52 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
c->flags |= CLIENT_ATTACHED;
}
+ if (cfg_finished)
+ cfg_show_causes(s);
+
return (CMD_RETURN_NORMAL);
}
-/* $OpenBSD: cmd-new-session.c,v 1.145 2022/06/20 07:59:37 nicm Exp $ */
+/* $OpenBSD: cmd-new-session.c,v 1.146 2022/07/06 08:40:52 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
server_client_set_key_table(c, NULL);
}
- /*
- * If there are still configuration file errors to display, put the new
- * session's current window into view mode and display them now.
- */
- if (cfg_finished)
- cfg_show_causes(s);
-
/* Print if requested. */
if (args_has(args, 'P')) {
if ((template = args_get(args, 'F')) == NULL)
cmd_find_from_session(&fs, s, 0);
cmdq_insert_hook(s, item, &fs, "after-new-session");
+ if (cfg_finished)
+ cfg_show_causes(s);
+
if (sc.argv != NULL)
cmd_free_argv(sc.argc, sc.argv);
free(cwd);