summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/input-keys.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-11-14 11:45:43 +0000
committernicm <nicm@openbsd.org>2015-11-14 11:45:43 +0000
commit39d4fc02d8206b43e19f7b5ff5a46d60565cfbc5 (patch)
tree1b2051a39a034281767436ca338147fc794ab025 /usr.bin/tmux/input-keys.c
parentRename a variable in utf8_combine for consistency and use 0xfffd for (diff)
downloadwireguard-openbsd-39d4fc02d8206b43e19f7b5ff5a46d60565cfbc5.tar.xz
wireguard-openbsd-39d4fc02d8206b43e19f7b5ff5a46d60565cfbc5.zip
All these return values from utf8_* are confusing, use an enum.
Diffstat (limited to 'usr.bin/tmux/input-keys.c')
-rw-r--r--usr.bin/tmux/input-keys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/input-keys.c b/usr.bin/tmux/input-keys.c
index 0c7a37deae1..abc4dab4251 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.47 2015/11/12 22:04:37 nicm Exp $ */
+/* $OpenBSD: input-keys.c,v 1.48 2015/11/14 11:45:43 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -169,7 +169,7 @@ input_key(struct window_pane *wp, key_code key, struct mouse_event *m)
return;
}
if (key != KEYC_NONE && justkey > 0x7f && justkey < KEYC_BASE) {
- if (utf8_split(justkey, &ud) != 0)
+ if (utf8_split(justkey, &ud) != UTF8_DONE)
return;
if (key & KEYC_ESCAPE)
bufferevent_write(wp->event, "\033", 1);