version 1.44, 2017/05/01 12:20:55 |
version 1.45, 2018/08/02 11:44:07 |
|
|
|
|
repeat = 0; |
repeat = 0; |
tablewidth = keywidth = 0; |
tablewidth = keywidth = 0; |
RB_FOREACH(table, key_tables, &key_tables) { |
table = key_bindings_first_table (); |
if (tablename != NULL && strcmp(table->name, tablename) != 0) |
while (table != NULL) { |
|
if (tablename != NULL && strcmp(table->name, tablename) != 0) { |
|
table = key_bindings_next_table(table); |
continue; |
continue; |
RB_FOREACH(bd, key_bindings, &table->key_bindings) { |
} |
|
bd = key_bindings_first(table); |
|
while (bd != NULL) { |
key = key_string_lookup_key(bd->key); |
key = key_string_lookup_key(bd->key); |
|
|
if (bd->flags & KEY_BINDING_REPEAT) |
if (bd->flags & KEY_BINDING_REPEAT) |
|
|
width = utf8_cstrwidth(key); |
width = utf8_cstrwidth(key); |
if (width > keywidth) |
if (width > keywidth) |
keywidth = width; |
keywidth = width; |
|
|
|
bd = key_bindings_next(table, bd); |
} |
} |
|
table = key_bindings_next_table(table); |
} |
} |
|
|
RB_FOREACH(table, key_tables, &key_tables) { |
table = key_bindings_first_table (); |
if (tablename != NULL && strcmp(table->name, tablename) != 0) |
while (table != NULL) { |
|
if (tablename != NULL && strcmp(table->name, tablename) != 0) { |
|
table = key_bindings_next_table(table); |
continue; |
continue; |
RB_FOREACH(bd, key_bindings, &table->key_bindings) { |
} |
|
bd = key_bindings_first(table); |
|
while (bd != NULL) { |
key = key_string_lookup_key(bd->key); |
key = key_string_lookup_key(bd->key); |
|
|
if (!repeat) |
if (!repeat) |
|
|
free(cp); |
free(cp); |
|
|
cmdq_print(item, "bind-key %s", tmp); |
cmdq_print(item, "bind-key %s", tmp); |
|
bd = key_bindings_next(table, bd); |
} |
} |
|
table = key_bindings_next_table(table); |
} |
} |
|
|
return (CMD_RETURN_NORMAL); |
return (CMD_RETURN_NORMAL); |