summaryrefslogtreecommitdiffstats
path: root/cmd-list.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-03-22 19:14:55 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-03-22 19:14:55 +0000
commite16b7b8399c7478db34788e29020f4b973fb5fe0 (patch)
treec3afebf99316b3a4278a3788acc40b784635a49a /cmd-list.c
parent9abbe349af66a749202cd1df42b32a0997b0ba6f (diff)
Reset output functions too when changing client after attaching, to
avoid crash if a command in a sequence after new/attach causes output.
Diffstat (limited to 'cmd-list.c')
-rw-r--r--cmd-list.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd-list.c b/cmd-list.c
index 9adf7f76..55550c21 100644
--- a/cmd-list.c
+++ b/cmd-list.c
@@ -99,6 +99,10 @@ cmd_list_exec(struct cmd_list *cmdlist, struct cmd_ctx *ctx)
if (ctx->curclient == NULL) {
ctx->curclient = ctx->cmdclient;
ctx->cmdclient = NULL;
+
+ ctx->error = key_bindings_error;
+ ctx->print = key_bindings_print;
+ ctx->info = key_bindings_info;
}
}
}