diff options
author | Thomas Adam <thomas@xteddy.org> | 2015-12-12 20:01:15 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2015-12-12 20:01:15 +0000 |
commit | 845a664bb2d06ac1cdc0af37d753d107f4353955 (patch) | |
tree | bdd2832180ef678265972308ed08e71ab0bbab60 /input-keys.c | |
parent | 5a5db02b8514eff40b97b3f3e4e85a3d948b57da (diff) | |
parent | 5ed17e84faed0a7655ec1eb3de291b60839dcb12 (diff) | |
download | rtmux-845a664bb2d06ac1cdc0af37d753d107f4353955.tar.gz rtmux-845a664bb2d06ac1cdc0af37d753d107f4353955.tar.bz2 rtmux-845a664bb2d06ac1cdc0af37d753d107f4353955.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'input-keys.c')
-rw-r--r-- | input-keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/input-keys.c b/input-keys.c index 0a18f37e..1572b7e7 100644 --- a/input-keys.c +++ b/input-keys.c @@ -160,14 +160,14 @@ input_key(struct window_pane *wp, key_code key, struct mouse_event *m) * if necessary. If it is a UTF-8 key, split it and send it. */ justkey = (key & ~KEYC_ESCAPE); - if (key != KEYC_NONE && justkey <= 0x7f) { + if (justkey <= 0x7f) { if (key & KEYC_ESCAPE) bufferevent_write(wp->event, "\033", 1); ud.data[0] = justkey; bufferevent_write(wp->event, &ud.data[0], 1); return; } - if (key != KEYC_NONE && justkey > 0x7f && justkey < KEYC_BASE) { + if (justkey > 0x7f && justkey < KEYC_BASE) { if (utf8_split(justkey, &ud) != UTF8_DONE) return; if (key & KEYC_ESCAPE) |