Always set xterm flag.

This commit is contained in:
Nicholas Marriott 2020-05-15 11:20:12 +01:00
parent e95b644139
commit 2cf967ee67

View File

@ -71,9 +71,7 @@ cmd_send_keys_inject_key(struct cmdq_item *item, struct cmdq_item *after,
wme = TAILQ_FIRST(&wp->modes); wme = TAILQ_FIRST(&wp->modes);
if (wme == NULL || wme->mode->key_table == NULL) { if (wme == NULL || wme->mode->key_table == NULL) {
if (options_get_number(wp->window->options, "xterm-keys")) if (window_pane_key(wp, tc, s, wl, key|KEYC_XTERM, NULL) != 0)
key |= KEYC_XTERM;
if (window_pane_key(wp, tc, s, wl, key, NULL) != 0)
return (NULL); return (NULL);
return (item); return (item);
} }