summaryrefslogtreecommitdiffstats
path: root/input-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2015-12-12 18:19:00 +0000
committernicm <nicm>2015-12-12 18:19:00 +0000
commit39cf9c9d31954198ad73e2b6721a92fe782ee56c (patch)
tree8b2a0238d0d1ccf01232a2f45560dd5b0c9259fe /input-keys.c
parent88bc8f3528b973adb17f541e21aa415923a10f1e (diff)
Allow prefix and prefix2 to be set to None to disable (useful if you
would rather bind the prefix in the root table).
Diffstat (limited to 'input-keys.c')
-rw-r--r--input-keys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/input-keys.c b/input-keys.c
index 2915cb45..3bc1f812 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -161,14 +161,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)