summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/key-bindings.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-08-23 16:45:01 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-08-23 16:45:01 +0000
commit64dd9c8a82fcdea3d677666c748bfacd6b4f0121 (patch)
treeb93086630787fc652cf34fb31d5c5597da4525ed /usr.bin/tmux/key-bindings.c
parent879e729ce324cafbd3d3371341114eece6cbb6ad (diff)
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 'usr.bin/tmux/key-bindings.c')
-rw-r--r--usr.bin/tmux/key-bindings.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tmux/key-bindings.c b/usr.bin/tmux/key-bindings.c
index 5a07b0ace2d..43eb27ee2d4 100644
--- a/usr.bin/tmux/key-bindings.c
+++ b/usr.bin/tmux/key-bindings.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: key-bindings.c,v 1.8 2009/07/24 14:52:47 nicm Exp $ */
+/* $OpenBSD: key-bindings.c,v 1.9 2009/08/23 16:45:00 nicm 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;