summaryrefslogtreecommitdiffstats
path: root/cmd-list-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-10-20 18:20:36 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-10-20 18:20:36 +0000
commit139754b9feef91f1911b7a22c3ac2a684eee2aa9 (patch)
tree863ea69e5cf4937b3774da66499b5e30d1b18ad3 /cmd-list-keys.c
parent248fb14f089216bf384c8914163cc77b4f219154 (diff)
Mark repeating keys with "(repeat)" in the key list.
Diffstat (limited to 'cmd-list-keys.c')
-rw-r--r--cmd-list-keys.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd-list-keys.c b/cmd-list-keys.c
index d41f890b..b60b4666 100644
--- a/cmd-list-keys.c
+++ b/cmd-list-keys.c
@@ -80,6 +80,11 @@ cmd_list_keys_exec(struct cmd *self, struct cmd_ctx *ctx)
if (used >= sizeof tmp)
continue;
}
+ if (bd->can_repeat) {
+ used = strlcat(tmp, "(repeat) ", sizeof tmp);
+ if (used >= sizeof tmp)
+ continue;
+ }
cmd_list_print(bd->cmdlist, tmp + used, (sizeof tmp) - used);
ctx->print(ctx, "%s", tmp);
}