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

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