From 139754b9feef91f1911b7a22c3ac2a684eee2aa9 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 20 Oct 2010 18:20:36 +0000 Subject: [PATCH] Mark repeating keys with "(repeat)" in the key list. --- cmd-list-keys.c | 5 +++++ 1 file changed, 5 insertions(+) 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); }