mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-23 14:28:55 +01:00
Reset flags on every loop or it is displayed too often, from Chris
Johnsen.
This commit is contained in:
parent
da145e7c20
commit
d71e4b9aca
@ -54,7 +54,6 @@ cmd_list_keys_exec(struct cmd *self, struct cmd_ctx *ctx)
|
|||||||
return (cmd_list_keys_table(self, ctx));
|
return (cmd_list_keys_table(self, ctx));
|
||||||
|
|
||||||
width = 0;
|
width = 0;
|
||||||
*flags = '\0';
|
|
||||||
|
|
||||||
SPLAY_FOREACH(bd, key_bindings, &key_bindings) {
|
SPLAY_FOREACH(bd, key_bindings, &key_bindings) {
|
||||||
key = key_string_lookup_key(bd->key & ~KEYC_PREFIX);
|
key = key_string_lookup_key(bd->key & ~KEYC_PREFIX);
|
||||||
@ -78,6 +77,7 @@ cmd_list_keys_exec(struct cmd *self, struct cmd_ctx *ctx)
|
|||||||
if (key == NULL)
|
if (key == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
*flags = '\0';
|
||||||
if (!(bd->key & KEYC_PREFIX)) {
|
if (!(bd->key & KEYC_PREFIX)) {
|
||||||
if (bd->can_repeat)
|
if (bd->can_repeat)
|
||||||
xsnprintf(flags, sizeof flags, "-rn ");
|
xsnprintf(flags, sizeof flags, "-rn ");
|
||||||
|
Loading…
Reference in New Issue
Block a user