From 43cd40e87a41d9504dcac99419c96e3cdbb81029 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 23 Aug 2009 16:45:00 +0000 Subject: The cursession member in struct cmd_ctx is always either curclient->session or NULL when curclient is also NULL, so just eliminate it. --- key-bindings.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'key-bindings.c') diff --git a/key-bindings.c b/key-bindings.c index 186c1a9b..b2ccc4aa 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -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; -- cgit v1.2.3