diff --git a/cmd-list-keys.c b/cmd-list-keys.c index c88bea2b..8f957c84 100644 --- a/cmd-list-keys.c +++ b/cmd-list-keys.c @@ -54,6 +54,8 @@ cmd_list_keys_exec(struct cmd *self, struct cmd_ctx *ctx) return (cmd_list_keys_table(self, ctx)); width = 0; + *flags = '\0'; + SPLAY_FOREACH(bd, key_bindings, &key_bindings) { key = key_string_lookup_key(bd->key & ~KEYC_PREFIX); if (key == NULL)