diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-03-22 19:14:55 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-03-22 19:14:55 +0000 |
commit | e16b7b8399c7478db34788e29020f4b973fb5fe0 (patch) | |
tree | c3afebf99316b3a4278a3788acc40b784635a49a | |
parent | 9abbe349af66a749202cd1df42b32a0997b0ba6f (diff) | |
download | rtmux-e16b7b8399c7478db34788e29020f4b973fb5fe0.tar.gz rtmux-e16b7b8399c7478db34788e29020f4b973fb5fe0.tar.bz2 rtmux-e16b7b8399c7478db34788e29020f4b973fb5fe0.zip |
Reset output functions too when changing client after attaching, to
avoid crash if a command in a sequence after new/attach causes output.
-rw-r--r-- | cmd-list.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; } } } |