aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2010-03-18 21:06:40 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2010-03-18 21:06:40 +0000
commit659d15786ae6700350d9785264f9417a27d1ce6a (patch)
tree61d21f13c95aeae05f13472f606f2bd36ca66b14
parent2307b91ecbd20914bcb2da30bc85e3cc79b0eba1 (diff)
downloadrtmux-659d15786ae6700350d9785264f9417a27d1ce6a.tar.gz
rtmux-659d15786ae6700350d9785264f9417a27d1ce6a.tar.bz2
rtmux-659d15786ae6700350d9785264f9417a27d1ce6a.zip
Reset output functions too when changing client after attaching.
-rw-r--r--cmd-list.c6
1 files changed, 5 insertions, 1 deletions
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 <nicm@users.sourceforge.net>
@@ -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;
}
}
}