From a00b0d13ede4a0f3743606c79a38eada403f77f9 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 28 Jun 2017 11:36:39 +0000 Subject: Apply the xterm key flag when needed for send-keys, fixes problem reported by Franky Spamschleuder. --- cmd-send-keys.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd-send-keys.c') diff --git a/cmd-send-keys.c b/cmd-send-keys.c index 5c6db347..8d2c2608 100644 --- a/cmd-send-keys.c +++ b/cmd-send-keys.c @@ -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; } -- cgit v1.2.3