aboutsummaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-01-27 10:01:27 +0000
committerThomas Adam <thomas@xteddy.org>2020-01-27 10:01:27 +0000
commitf3ea318a044ed729c7fcf8c1897f0d479f88bdd4 (patch)
tree4e6568f7fde7ee476ed7a1f2074c36083260cfd0 /status.c
parent0eb7b54731e35180c7569891379bf3626ed35a02 (diff)
parent2c38e01b548553aa162f9f126147b5ed64fd1700 (diff)
downloadrtmux-f3ea318a044ed729c7fcf8c1897f0d479f88bdd4.tar.gz
rtmux-f3ea318a044ed729c7fcf8c1897f0d479f88bdd4.tar.bz2
rtmux-f3ea318a044ed729c7fcf8c1897f0d479f88bdd4.zip
Merge branch 'obsd-master'
Diffstat (limited to 'status.c')
-rw-r--r--status.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/status.c b/status.c
index 0f96f0d3..33f6c47a 100644
--- a/status.c
+++ b/status.c
@@ -915,11 +915,17 @@ status_prompt_key(struct client *c, key_code key)
{
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) {