diff options
author | 2017-06-28 11:36:39 +0000 | |
---|---|---|
committer | 2017-06-28 11:36:39 +0000 | |
commit | 0f99bcbc1eb53298abbdf425786417b890b41737 (patch) | |
tree | 8e6c56439570239e80c0c2a0d58427ed73900580 /usr.bin/tmux/input-keys.c | |
parent | whitespace fixes, from Rob Pierce and me (diff) | |
download | wireguard-openbsd-0f99bcbc1eb53298abbdf425786417b890b41737.tar.xz wireguard-openbsd-0f99bcbc1eb53298abbdf425786417b890b41737.zip |
Apply the xterm key flag when needed for send-keys, fixes problem
reported by Franky Spamschleuder.
Diffstat (limited to 'usr.bin/tmux/input-keys.c')
-rw-r--r-- | usr.bin/tmux/input-keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/input-keys.c b/usr.bin/tmux/input-keys.c index 6bd06689e98..86810a73c30 100644 --- a/usr.bin/tmux/input-keys.c +++ b/usr.bin/tmux/input-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input-keys.c,v 1.61 2017/06/12 07:04:24 nicm Exp $ */ +/* $OpenBSD: input-keys.c,v 1.62 2017/06/28 11:36:39 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); |