aboutsummaryrefslogtreecommitdiff
path: root/cmd-set-option.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r--cmd-set-option.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c
index 2a3b2877..a495a15d 100644
--- a/cmd-set-option.c
+++ b/cmd-set-option.c
@@ -186,8 +186,11 @@ cmd_set_option_exec(struct cmd *self, struct cmd_ctx *ctx)
recalculate_sizes();
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
c = ARRAY_ITEM(&clients, i);
- if (c != NULL && c->session != NULL)
+ if (c != NULL && c->session != NULL) {
+ job_tree_free(&c->status_jobs);
+ job_tree_init(&c->status_jobs);
server_redraw_client(c);
+ }
}
return (0);