diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-08-24 16:24:18 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-08-24 16:24:18 +0000 |
commit | 2e2e762743417ae7a0c32a4b40909ecdf3bb3560 (patch) | |
tree | 5bb1acfe9bc3008ee8197c6daa12e8e2ce88658e /key-bindings.c | |
parent | 266c13df18bb576bbda4a417c429a66a8929c6af (diff) | |
download | rtmux-2e2e762743417ae7a0c32a4b40909ecdf3bb3560.tar.gz rtmux-2e2e762743417ae7a0c32a4b40909ecdf3bb3560.tar.bz2 rtmux-2e2e762743417ae7a0c32a4b40909ecdf3bb3560.zip |
Sync OpenBSD patchset 289:
The cursession member in struct cmd_ctx is always either curclient->session or
NULL when curclient is also NULL, so just eliminate it.
Diffstat (limited to 'key-bindings.c')
-rw-r--r-- | key-bindings.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/key-bindings.c b/key-bindings.c index b9096e37..56b0fb71 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -1,4 +1,4 @@ -/* $Id: key-bindings.c,v 1.79 2009-07-25 08:52:04 tcunha Exp $ */ +/* $Id: key-bindings.c,v 1.80 2009-08-24 16:24:18 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -218,7 +218,7 @@ key_bindings_error(struct cmd_ctx *ctx, const char *fmt, ...) void printflike2 key_bindings_print(struct cmd_ctx *ctx, const char *fmt, ...) { - struct winlink *wl = ctx->cursession->curw; + struct winlink *wl = ctx->curclient->session->curw; va_list ap; if (wl->window->active->mode != &window_more_mode) @@ -254,7 +254,6 @@ key_bindings_dispatch(struct key_binding *bd, struct client *c) struct cmd_ctx ctx; ctx.msgdata = NULL; - ctx.cursession = c->session; ctx.curclient = c; ctx.error = key_bindings_error; |