aboutsummaryrefslogtreecommitdiff
path: root/cmd-list-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2020-05-16 16:35:13 +0000
committernicm <nicm>2020-05-16 16:35:13 +0000
commit292b335ca5b594729cf9ff79f0f4273c725537a4 (patch)
tree0eec72b4ead11b18a656536d517ca119e89c9dea /cmd-list-keys.c
parente2a26740b9880d0066c8a04ca2d7202e7f99bd07 (diff)
downloadrtmux-292b335ca5b594729cf9ff79f0f4273c725537a4.tar.gz
rtmux-292b335ca5b594729cf9ff79f0f4273c725537a4.tar.bz2
rtmux-292b335ca5b594729cf9ff79f0f4273c725537a4.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 'cmd-list-keys.c')
-rw-r--r--cmd-list-keys.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd-list-keys.c b/cmd-list-keys.c
index 60ef73af..51c90dfe 100644
--- a/cmd-list-keys.c
+++ b/cmd-list-keys.c
@@ -73,7 +73,7 @@ cmd_list_keys_get_width(const char *tablename, key_code only)
bd = key_bindings_next(table, bd);
continue;
}
- width = utf8_cstrwidth(key_string_lookup_key(bd->key));
+ width = utf8_cstrwidth(key_string_lookup_key(bd->key, 0));
if (width > keywidth)
keywidth = width;
@@ -106,7 +106,7 @@ cmd_list_keys_print_notes(struct cmdq_item *item, struct args *args,
continue;
}
found = 1;
- key = key_string_lookup_key(bd->key);
+ key = key_string_lookup_key(bd->key, 0);
if (bd->note == NULL || *bd->note == '\0')
note = cmd_list_print(bd->cmdlist, 1);
@@ -135,7 +135,7 @@ cmd_list_keys_get_prefix(struct args *args, key_code *prefix)
*prefix = options_get_number(global_s_options, "prefix");
if (!args_has(args, 'P')) {
if (*prefix != KEYC_NONE)
- xasprintf(&s, "%s ", key_string_lookup_key(*prefix));
+ xasprintf(&s, "%s ", key_string_lookup_key(*prefix, 0));
else
s = xstrdup("");
} else
@@ -221,7 +221,7 @@ cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item)
bd = key_bindings_next(table, bd);
continue;
}
- key = args_escape(key_string_lookup_key(bd->key));
+ key = args_escape(key_string_lookup_key(bd->key, 0));
if (bd->flags & KEY_BINDING_REPEAT)
repeat = 1;
@@ -255,7 +255,7 @@ cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item)
continue;
}
found = 1;
- key = args_escape(key_string_lookup_key(bd->key));
+ key = args_escape(key_string_lookup_key(bd->key, 0));
if (!repeat)
r = "";