aboutsummaryrefslogtreecommitdiff
path: root/cmd-confirm-before.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2011-07-03 21:52:50 +0000
committerTiago Cunha <tcunha@gmx.com>2011-07-03 21:52:50 +0000
commite097f0b4ee30352ef1ea37ef030838b634fdf27e (patch)
tree74a36d6db7a91ce9e58769a82582c35c716ce842 /cmd-confirm-before.c
parentff7343c20355deab251a71bafb7cb86b2f0c545a (diff)
downloadrtmux-e097f0b4ee30352ef1ea37ef030838b634fdf27e.tar.gz
rtmux-e097f0b4ee30352ef1ea37ef030838b634fdf27e.tar.bz2
rtmux-e097f0b4ee30352ef1ea37ef030838b634fdf27e.zip
Sync OpenBSD patchset 927:
Allow the initial context on prompts to be set with the new -I option to command-prompt. From Tiago Cunha.
Diffstat (limited to 'cmd-confirm-before.c')
-rw-r--r--cmd-confirm-before.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd-confirm-before.c b/cmd-confirm-before.c
index 00a47f3c..eca3cd3f 100644
--- a/cmd-confirm-before.c
+++ b/cmd-confirm-before.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-confirm-before.c,v 1.13 2011-01-07 14:45:34 tcunha Exp $ */
+/* $Id$ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -87,9 +87,8 @@ cmd_confirm_before_exec(struct cmd *self, struct cmd_ctx *ctx)
cdata = xmalloc(sizeof *cdata);
cdata->cmd = xstrdup(args->argv[0]);
cdata->c = c;
- status_prompt_set(cdata->c, buf,
- cmd_confirm_before_callback, cmd_confirm_before_free, cdata,
- PROMPT_SINGLE);
+ status_prompt_set(cdata->c, buf, NULL, cmd_confirm_before_callback,
+ cmd_confirm_before_free, cdata, PROMPT_SINGLE);
xfree(buf);
return (1);