From e16b7b8399c7478db34788e29020f4b973fb5fe0 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 22 Mar 2010 19:14:55 +0000 Subject: [PATCH] Reset output functions too when changing client after attaching, to avoid crash if a command in a sequence after new/attach causes output. --- cmd-list.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } } }