diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-03-22 19:14:56 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-03-22 19:14:56 +0000 |
commit | 22a1d2366979dcbc2ac0c42647bfeb96351c8613 (patch) | |
tree | 475bfa88ea7fa53eb7c07173c75c00b8ff97e20d /usr.bin/tmux | |
parent | 99ef1ba9c0e0c108d58f652bc5bb813f02470220 (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 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/cmd-list.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-list.c b/usr.bin/tmux/cmd-list.c index 6705285df86..f876cdb089b 100644 --- a/usr.bin/tmux/cmd-list.c +++ b/usr.bin/tmux/cmd-list.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-list.c,v 1.3 2010/01/30 19:08:47 nicm Exp $ */ +/* $OpenBSD: cmd-list.c,v 1.4 2010/03/22 19:14:55 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; } } } |