From 659d15786ae6700350d9785264f9417a27d1ce6a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 18 Mar 2010 21:06:40 +0000 Subject: [PATCH] Reset output functions too when changing client after attaching. --- cmd-list.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd-list.c b/cmd-list.c index 7c63fe85..4313a363 100644 --- a/cmd-list.c +++ b/cmd-list.c @@ -1,4 +1,4 @@ -/* $Id: cmd-list.c,v 1.7 2010-02-02 23:51:04 tcunha Exp $ */ +/* $Id: cmd-list.c,v 1.8 2010-03-18 21:06:40 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -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; } } }