mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-23 08:33:17 +01:00
Mark repeating keys with "(repeat)" in the key list.
This commit is contained in:
parent
248fb14f08
commit
139754b9fe
@ -80,6 +80,11 @@ cmd_list_keys_exec(struct cmd *self, struct cmd_ctx *ctx)
|
|||||||
if (used >= sizeof tmp)
|
if (used >= sizeof tmp)
|
||||||
continue;
|
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);
|
cmd_list_print(bd->cmdlist, tmp + used, (sizeof tmp) - used);
|
||||||
ctx->print(ctx, "%s", tmp);
|
ctx->print(ctx, "%s", tmp);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user