diff options
author | Tiago Cunha <tcunha@gmx.com> | 2011-07-03 21:52:50 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2011-07-03 21:52:50 +0000 |
commit | e097f0b4ee30352ef1ea37ef030838b634fdf27e (patch) | |
tree | 74a36d6db7a91ce9e58769a82582c35c716ce842 /cmd-confirm-before.c | |
parent | ff7343c20355deab251a71bafb7cb86b2f0c545a (diff) | |
download | rtmux-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.c | 7 |
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); |