aboutsummaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-15 12:16:41 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-15 12:16:41 +0100
commit340fd691cbd6f575fc1169269dfa675f30ce71d3 (patch)
tree15d3aa92656e6fe413bd2e74b47c9ebb20edafb1 /status.c
parent031d4864a94cd7c042fe96a2d236bccde83655e7 (diff)
downloadrtmux-340fd691cbd6f575fc1169269dfa675f30ce71d3.tar.gz
rtmux-340fd691cbd6f575fc1169269dfa675f30ce71d3.tar.bz2
rtmux-340fd691cbd6f575fc1169269dfa675f30ce71d3.zip
Separate key flags and modifiers, log key flags, make the "xterm" flag more
explicit and fix M- keys with a leading escape.
Diffstat (limited to 'status.c')
-rw-r--r--status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/status.c b/status.c
index 9bee2e7b..93ac70df 100644
--- a/status.c
+++ b/status.c
@@ -1023,7 +1023,7 @@ status_prompt_key(struct client *c, key_code key)
int keys;
if (c->prompt_flags & PROMPT_KEY) {
- keystring = key_string_lookup_key(key);
+ keystring = key_string_lookup_key(key, 0);
c->prompt_inputcb(c, c->prompt_data, keystring, 1);
status_prompt_clear(c);
return (0);
@@ -1039,7 +1039,7 @@ status_prompt_key(struct client *c, key_code key)
free(s);
return (1);
}
- key &= ~KEYC_XTERM;
+ key &= ~KEYC_MASK_FLAGS;
keys = options_get_number(c->session->options, "status-keys");
if (keys == MODEKEY_VI) {