summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-confirm-before.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2013-03-22 15:54:29 +0000
committernicm <nicm@openbsd.org>2013-03-22 15:54:29 +0000
commit523db3ccc8f13add20cd2f3df3d3117af13f538f (patch)
treeb72b2bf4cf8382b5f4b3068ee386a60f0ff2df75 /usr.bin/tmux/cmd-confirm-before.c
parentClear last attributes after reset in string_cells, from George Nachman. (diff)
downloadwireguard-openbsd-523db3ccc8f13add20cd2f3df3d3117af13f538f.tar.xz
wireguard-openbsd-523db3ccc8f13add20cd2f3df3d3117af13f538f.zip
Need to set clients in context before changing their reference count.
Diffstat (limited to 'usr.bin/tmux/cmd-confirm-before.c')
-rw-r--r--usr.bin/tmux/cmd-confirm-before.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-confirm-before.c b/usr.bin/tmux/cmd-confirm-before.c
index 6d8ae58164e..d4fa92569cb 100644
--- a/usr.bin/tmux/cmd-confirm-before.c
+++ b/usr.bin/tmux/cmd-confirm-before.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-confirm-before.c,v 1.16 2013/03/22 15:50:42 nicm Exp $ */
+/* $OpenBSD: cmd-confirm-before.c,v 1.17 2013/03/22 15:54:29 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -125,8 +125,7 @@ cmd_confirm_before_callback(void *data, const char *s)
return (0);
}
- ctx = cmd_get_ctx();
- ctx->curclient = c;
+ ctx = cmd_get_ctx(NULL, c);
ctx->error = key_bindings_error;
ctx->print = key_bindings_print;
ctx->info = key_bindings_info;