diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-07-02 21:05:44 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-07-02 21:05:44 +0000 |
commit | ad60a2c952694919ed3985855ef5a00939a937b8 (patch) | |
tree | cea7067924808b9a62d4cc02b32a358aface6913 /cmd-confirm-before.c | |
parent | 1202284f3728f98e2c40648f6813c64676547ef9 (diff) |
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 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd-confirm-before.c b/cmd-confirm-before.c index b19d69d7..958453e2 100644 --- a/cmd-confirm-before.c +++ b/cmd-confirm-before.c @@ -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); |