diff options
author | nicm <nicm> | 2022-07-06 08:40:52 +0000 |
---|---|---|
committer | nicm <nicm> | 2022-07-06 08:40:52 +0000 |
commit | 1afe22086fb85a596eb4a20f2e80cacfbbc2f1e5 (patch) | |
tree | 08b5f41154bfe81e8c812906a6710d267f2470bf | |
parent | a39827a85cede5d52bc164f0b18404449ed8bba6 (diff) | |
download | rtmux-1afe22086fb85a596eb4a20f2e80cacfbbc2f1e5.tar.gz rtmux-1afe22086fb85a596eb4a20f2e80cacfbbc2f1e5.tar.bz2 rtmux-1afe22086fb85a596eb4a20f2e80cacfbbc2f1e5.zip |
Show config errors on attach if they were not shown when the session
was created.
-rw-r--r-- | cmd-attach-session.c | 3 | ||||
-rw-r--r-- | cmd-new-session.c | 10 |
2 files changed, 6 insertions, 7 deletions
diff --git a/cmd-attach-session.c b/cmd-attach-session.c index b92a7f2b..4e2d15da 100644 --- a/cmd-attach-session.c +++ b/cmd-attach-session.c @@ -158,6 +158,9 @@ cmd_attach_session(struct cmdq_item *item, const char *tflag, int dflag, c->flags |= CLIENT_ATTACHED; } + if (cfg_finished) + cfg_show_causes(s); + return (CMD_RETURN_NORMAL); } diff --git a/cmd-new-session.c b/cmd-new-session.c index b946f049..c90369bc 100644 --- a/cmd-new-session.c +++ b/cmd-new-session.c @@ -333,13 +333,6 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item) 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) @@ -357,6 +350,9 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item) 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); |