Apply the xterm key flag when needed for send-keys, fixes problem

reported by Franky Spamschleuder.
This commit is contained in:
nicm
2017-06-28 11:36:39 +00:00
parent 1e376be13d
commit a00b0d13ed
4 changed files with 6 additions and 4 deletions

View File

@ -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;
}