diff options
author | 2015-11-12 11:05:34 +0000 | |
---|---|---|
committer | 2015-11-12 11:05:34 +0000 | |
commit | 885a46987fa37c3ab9f797b657cf591a414f800f (patch) | |
tree | 8affdbe66f542715691e2756b150ba5e8fd64eff /usr.bin/tmux/cmd-set-option.c | |
parent | can just IFQ_DEQUEUE instead of POLL followed immediately by DEQUEUE (diff) | |
download | wireguard-openbsd-885a46987fa37c3ab9f797b657cf591a414f800f.tar.xz wireguard-openbsd-885a46987fa37c3ab9f797b657cf591a414f800f.zip |
Support UTF-8 key bindings by expanding the key type from int to
uint64_t and converting UTF-8 to Unicode on input and the reverse on
output. (This allows key bindings, there are still omissions - the
largest being that the various prompts do not accept UTF-8.)
Diffstat (limited to 'usr.bin/tmux/cmd-set-option.c')
-rw-r--r-- | usr.bin/tmux/cmd-set-option.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-set-option.c b/usr.bin/tmux/cmd-set-option.c index 2f4eeec1d27..5020e045b22 100644 --- a/usr.bin/tmux/cmd-set-option.c +++ b/usr.bin/tmux/cmd-set-option.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-set-option.c,v 1.84 2015/10/27 15:58:42 nicm Exp $ */ +/* $OpenBSD: cmd-set-option.c,v 1.85 2015/11/12 11:05:34 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -394,7 +394,7 @@ cmd_set_option_key(unused struct cmd *self, struct cmd_q *cmdq, const struct options_table_entry *oe, struct options *oo, const char *value) { - int key; + key_code key; if ((key = key_string_lookup_string(value)) == KEYC_NONE) { cmdq_error(cmdq, "bad key: %s", value); |