summaryrefslogtreecommitdiffstats
path: root/cmd-list-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2017-04-21 14:01:19 +0000
committernicm <nicm>2017-04-21 14:01:19 +0000
commitbba588752f8085da13edcacd71101055bd617303 (patch)
treeb75e32cccebefb24cda475bed163f613a2994548 /cmd-list-keys.c
parent311dad8c28c8c1a842beb3dbb1757064b9d83b2e (diff)
Store state shared between multiple commands in the queue in a shared
structure.
Diffstat (limited to 'cmd-list-keys.c')
-rw-r--r--cmd-list-keys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-list-keys.c b/cmd-list-keys.c
index ebc221e5..a46e05f5 100644
--- a/cmd-list-keys.c
+++ b/cmd-list-keys.c
@@ -81,7 +81,7 @@ cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item)
RB_FOREACH(bd, key_bindings, &table->key_bindings) {
key = key_string_lookup_key(bd->key);
- if (bd->can_repeat)
+ if (bd->flags & KEY_BINDING_REPEAT)
repeat = 1;
width = utf8_cstrwidth(table->name);
@@ -101,7 +101,7 @@ cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item)
if (!repeat)
r = "";
- else if (bd->can_repeat)
+ else if (bd->flags & KEY_BINDING_REPEAT)
r = "-r ";
else
r = " ";