version 1.53, 2020/04/09 13:56:46 |
version 1.54, 2020/04/13 08:26:27 |
|
|
static enum cmd_retval |
static enum cmd_retval |
cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item) |
cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item) |
{ |
{ |
struct args *args = self->args; |
struct args *args = cmd_get_args(self); |
struct key_table *table; |
struct key_table *table; |
struct key_binding *bd; |
struct key_binding *bd; |
const char *tablename, *r; |
const char *tablename, *r; |
|
|
int repeat, width, tablewidth, keywidth, found = 0; |
int repeat, width, tablewidth, keywidth, found = 0; |
size_t tmpsize, tmpused, cplen; |
size_t tmpsize, tmpused, cplen; |
|
|
if (self->entry == &cmd_list_commands_entry) |
if (cmd_get_entry(self) == &cmd_list_commands_entry) |
return (cmd_list_keys_commands(self, item)); |
return (cmd_list_keys_commands(self, item)); |
|
|
if (args->argc != 0) { |
if (args->argc != 0) { |
|
|
static enum cmd_retval |
static enum cmd_retval |
cmd_list_keys_commands(struct cmd *self, struct cmdq_item *item) |
cmd_list_keys_commands(struct cmd *self, struct cmdq_item *item) |
{ |
{ |
struct args *args = self->args; |
struct args *args = cmd_get_args(self); |
const struct cmd_entry **entryp; |
const struct cmd_entry **entryp; |
const struct cmd_entry *entry; |
const struct cmd_entry *entry; |
struct format_tree *ft; |
struct format_tree *ft; |