diff options
author | 2010-03-22 19:14:55 +0000 | |
---|---|---|
committer | 2010-03-22 19:14:55 +0000 | |
commit | 025bc544752f137ba9c0b32f897f8fe0f65de79e (patch) | |
tree | 9ac8a94dea58e0fca3dc13c159f227d3eeb58302 /usr.bin/tmux/cmd-list.c | |
parent | paste-buffer should be per pane, from C. Coutinho. (diff) | |
download | wireguard-openbsd-025bc544752f137ba9c0b32f897f8fe0f65de79e.tar.xz wireguard-openbsd-025bc544752f137ba9c0b32f897f8fe0f65de79e.zip |
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/cmd-list.c')
-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; } } } |