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. --- input-keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input-keys.c') diff --git a/input-keys.c b/input-keys.c index c0314db4..34710dac 100644 --- a/input-keys.c +++ b/input-keys.c @@ -177,7 +177,7 @@ input_key(struct window_pane *wp, key_code key, struct mouse_event *m) * If this is a normal 7-bit key, just send it, with a leading escape * if necessary. If it is a UTF-8 key, split it and send it. */ - justkey = (key & ~KEYC_ESCAPE); + justkey = (key & ~(KEYC_XTERM|KEYC_ESCAPE)); if (justkey <= 0x7f) { if (key & KEYC_ESCAPE) bufferevent_write(wp->event, "\033", 1); -- cgit