=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-command-prompt.c,v retrieving revision 1.51 retrieving revision 1.52 diff -c -r1.51 -r1.52 *** src/usr.bin/tmux/cmd-command-prompt.c 2020/04/13 20:51:57 1.51 --- src/usr.bin/tmux/cmd-command-prompt.c 2020/05/16 15:16:36 1.52 *************** *** 1,4 **** ! /* $OpenBSD: cmd-command-prompt.c,v 1.51 2020/04/13 20:51:57 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-command-prompt.c,v 1.52 2020/05/16 15:16:36 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott *************** *** 40,47 **** .name = "command-prompt", .alias = NULL, ! .args = { "1kiI:Np:t:", 0, 1 }, ! .usage = "[-1kiN] [-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE " " "[template]", .flags = CMD_CLIENT_TFLAG, --- 40,47 ---- .name = "command-prompt", .alias = NULL, ! .args = { "1kiI:Np:Tt:W", 0, 1 }, ! .usage = "[-1kiNTW] [-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE " " "[template]", .flags = CMD_CLIENT_TFLAG, *************** *** 121,126 **** --- 121,130 ---- cdata->flags |= PROMPT_INCREMENTAL; else if (args_has(args, 'k')) cdata->flags |= PROMPT_KEY; + else if (args_has(args, 'W')) + cdata->flags |= PROMPT_WINDOW; + else if (args_has(args, 'T')) + cdata->flags |= PROMPT_TARGET; status_prompt_set(tc, prompt, input, cmd_command_prompt_callback, cmd_command_prompt_free, cdata, cdata->flags); free(prompt);