diff options
author | 2020-05-16 16:35:13 +0000 | |
---|---|---|
committer | 2020-05-16 16:35:13 +0000 | |
commit | 5416581e0b94b173c3d9362360b6a4da2992baac (patch) | |
tree | c59f33feeea143bf688e855caa04cdbdb1c0d8de /usr.bin/tmux/options.c | |
parent | Rename KEYC_ESCAPE to KEYC_META. (diff) | |
download | wireguard-openbsd-5416581e0b94b173c3d9362360b6a4da2992baac.tar.xz wireguard-openbsd-5416581e0b94b173c3d9362360b6a4da2992baac.zip |
Separate key flags and modifiers, log key flags, make the "xterm" flag
more explicit and fix M- keys with a leading escape.
Diffstat (limited to 'usr.bin/tmux/options.c')
-rw-r--r-- | usr.bin/tmux/options.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/options.c b/usr.bin/tmux/options.c index 9bdd432dd94..a3d6b490588 100644 --- a/usr.bin/tmux/options.c +++ b/usr.bin/tmux/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.57 2020/05/16 16:02:24 nicm Exp $ */ +/* $OpenBSD: options.c,v 1.58 2020/05/16 16:35:13 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -130,7 +130,7 @@ options_value_to_string(struct options_entry *o, union options_value *ov, xasprintf(&s, "%lld", ov->number); break; case OPTIONS_TABLE_KEY: - s = xstrdup(key_string_lookup_key(ov->number)); + s = xstrdup(key_string_lookup_key(ov->number, 0)); break; case OPTIONS_TABLE_COLOUR: s = xstrdup(colour_tostring(ov->number)); @@ -283,7 +283,7 @@ options_default_to_string(const struct options_table_entry *oe) xasprintf(&s, "%lld", oe->default_num); break; case OPTIONS_TABLE_KEY: - s = xstrdup(key_string_lookup_key(oe->default_num)); + s = xstrdup(key_string_lookup_key(oe->default_num, 0)); break; case OPTIONS_TABLE_COLOUR: s = xstrdup(colour_tostring(oe->default_num)); |