aboutsummaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-15 12:16:41 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-15 12:16:41 +0100
commit340fd691cbd6f575fc1169269dfa675f30ce71d3 (patch)
tree15d3aa92656e6fe413bd2e74b47c9ebb20edafb1 /menu.c
parent031d4864a94cd7c042fe96a2d236bccde83655e7 (diff)
downloadrtmux-340fd691cbd6f575fc1169269dfa675f30ce71d3.tar.gz
rtmux-340fd691cbd6f575fc1169269dfa675f30ce71d3.tar.bz2
rtmux-340fd691cbd6f575fc1169269dfa675f30ce71d3.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 'menu.c')
-rw-r--r--menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 62010a58..1969cef4 100644
--- a/menu.c
+++ b/menu.c
@@ -81,7 +81,7 @@ menu_add_item(struct menu *menu, const struct menu_item *item,
return;
}
if (*s != '-' && item->key != KEYC_UNKNOWN && item->key != KEYC_NONE) {
- key = key_string_lookup_key(item->key);
+ key = key_string_lookup_key(item->key, 0);
xasprintf(&name, "%s#[default] #[align=right](%s)", s, key);
} else
xasprintf(&name, "%s", s);