diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-10-20 18:20:36 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-10-20 18:20:36 +0000 |
commit | 139754b9feef91f1911b7a22c3ac2a684eee2aa9 (patch) | |
tree | 863ea69e5cf4937b3774da66499b5e30d1b18ad3 /cmd-list-keys.c | |
parent | 248fb14f089216bf384c8914163cc77b4f219154 (diff) | |
download | rtmux-139754b9feef91f1911b7a22c3ac2a684eee2aa9.tar.gz rtmux-139754b9feef91f1911b7a22c3ac2a684eee2aa9.tar.bz2 rtmux-139754b9feef91f1911b7a22c3ac2a684eee2aa9.zip |
Mark repeating keys with "(repeat)" in the key list.
Diffstat (limited to 'cmd-list-keys.c')
-rw-r--r-- | cmd-list-keys.c | 5 |
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); } |