mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 22:43:58 +00:00
Apply the xterm key flag when needed for send-keys, fixes problem
reported by Franky Spamschleuder.
This commit is contained in:
@ -64,6 +64,8 @@ cmd_send_keys_inject(struct client *c, struct cmdq_item *item, key_code key)
|
||||
struct key_binding *bd, bd_find;
|
||||
|
||||
if (wp->mode == NULL || wp->mode->key_table == NULL) {
|
||||
if (options_get_number(wp->window->options, "xterm-keys"))
|
||||
key |= KEYC_XTERM;
|
||||
window_pane_key(wp, NULL, s, key, NULL);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user