=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/status.c,v retrieving revision 1.200 retrieving revision 1.201 diff -u -r1.200 -r1.201 --- src/usr.bin/tmux/status.c 2019/05/28 18:53:36 1.200 +++ src/usr.bin/tmux/status.c 2020/01/27 08:53:13 1.201 @@ -1,4 +1,4 @@ -/* $OpenBSD: status.c,v 1.200 2019/05/28 18:53:36 nicm Exp $ */ +/* $OpenBSD: status.c,v 1.201 2020/01/27 08:53:13 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -915,11 +915,17 @@ { struct options *oo = c->session->options; char *s, *cp, word[64], prefix = '='; - const char *histstr, *ws = NULL; + const char *histstr, *ws = NULL, *keystring; size_t size, n, off, idx, used; struct utf8_data tmp, *first, *last, *ud; int keys; + if (c->prompt_flags & PROMPT_KEY) { + keystring = key_string_lookup_key(key); + c->prompt_inputcb(c, c->prompt_data, keystring, 1); + status_prompt_clear(c); + return (0); + } size = utf8_strlen(c->prompt_buffer); if (c->prompt_flags & PROMPT_NUMERIC) {