diff options
author | nicm <nicm> | 2017-06-28 11:36:39 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-06-28 11:36:39 +0000 |
commit | a00b0d13ede4a0f3743606c79a38eada403f77f9 (patch) | |
tree | 374ff3593c70c8e4c062a2619101430423346de6 /input-keys.c | |
parent | 1e376be13d3ed6bd850b15d0292d73d47ad07e94 (diff) | |
download | rtmux-a00b0d13ede4a0f3743606c79a38eada403f77f9.tar.gz rtmux-a00b0d13ede4a0f3743606c79a38eada403f77f9.tar.bz2 rtmux-a00b0d13ede4a0f3743606c79a38eada403f77f9.zip |
Apply the xterm key flag when needed for send-keys, fixes problem
reported by Franky Spamschleuder.
Diffstat (limited to 'input-keys.c')
-rw-r--r-- | input-keys.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |