mirror of
https://github.com/tmux/tmux.git
synced 2025-09-06 03:18:17 +00:00
Apply the xterm key flag when needed for send-keys, fixes problem
reported by Franky Spamschleuder.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user