diff options
author | 2011-07-02 21:05:44 +0000 | |
---|---|---|
committer | 2011-07-02 21:05:44 +0000 | |
commit | b3a5ab269c348d7eaac66e9ca958622e9b2e3552 (patch) | |
tree | 5e7311e921f5ac693b4d4cb67b21325cf0b0b52c /usr.bin/tmux/cmd-confirm-before.c | |
parent | Add resourceproto documentation directory. (diff) | |
download | wireguard-openbsd-b3a5ab269c348d7eaac66e9ca958622e9b2e3552.tar.xz wireguard-openbsd-b3a5ab269c348d7eaac66e9ca958622e9b2e3552.zip |
Allow the initial context on prompts to be set with the new -I option to
command-prompt. From Tiago Cunha.
Diffstat (limited to 'usr.bin/tmux/cmd-confirm-before.c')
-rw-r--r-- | usr.bin/tmux/cmd-confirm-before.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-confirm-before.c b/usr.bin/tmux/cmd-confirm-before.c index f72563f0cd3..627cd7ae160 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.10 2011/01/04 00:42:46 nicm Exp $ */ +/* $OpenBSD: cmd-confirm-before.c,v 1.11 2011/07/02 21:05:44 nicm Exp $ */ /* * 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); |