mirror of
https://github.com/tmux/tmux.git
synced 2025-09-07 01:56:58 +00:00
Separate key flags and modifiers, log key flags, make the "xterm" flag more
explicit and fix M- keys with a leading escape.
This commit is contained in:
4
status.c
4
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) {
|
||||
|
Reference in New Issue
Block a user