=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-command-prompt.c,v retrieving revision 1.46 retrieving revision 1.47 diff -c -r1.46 -r1.47 *** src/usr.bin/tmux/cmd-command-prompt.c 2019/05/23 11:13:30 1.46 --- src/usr.bin/tmux/cmd-command-prompt.c 2020/01/27 08:53:13 1.47 *************** *** 1,4 **** ! /* $OpenBSD: cmd-command-prompt.c,v 1.46 2019/05/23 11:13:30 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-command-prompt.c,v 1.47 2020/01/27 08:53:13 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott *************** *** 40,47 **** .name = "command-prompt", .alias = NULL, ! .args = { "1iI:Np:t:", 0, 1 }, ! .usage = "[-1Ni] [-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE " " "[template]", .flags = 0, --- 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 = 0, *************** *** 122,127 **** --- 122,129 ---- cdata->flags |= PROMPT_NUMERIC; else if (args_has(args, 'i')) cdata->flags |= PROMPT_INCREMENTAL; + else if (args_has(args, 'k')) + cdata->flags |= PROMPT_KEY; status_prompt_set(c, prompt, input, cmd_command_prompt_callback, cmd_command_prompt_free, cdata, cdata->flags); free(prompt);