version 1.58, 2020/05/16 16:02:24 |
version 1.59, 2020/05/16 16:35:13 |
|
|
bd = key_bindings_next(table, bd); |
bd = key_bindings_next(table, bd); |
continue; |
continue; |
} |
} |
width = utf8_cstrwidth(key_string_lookup_key(bd->key)); |
width = utf8_cstrwidth(key_string_lookup_key(bd->key, 0)); |
if (width > keywidth) |
if (width > keywidth) |
keywidth = width; |
keywidth = width; |
|
|
|
|
continue; |
continue; |
} |
} |
found = 1; |
found = 1; |
key = key_string_lookup_key(bd->key); |
key = key_string_lookup_key(bd->key, 0); |
|
|
if (bd->note == NULL || *bd->note == '\0') |
if (bd->note == NULL || *bd->note == '\0') |
note = cmd_list_print(bd->cmdlist, 1); |
note = cmd_list_print(bd->cmdlist, 1); |
|
|
*prefix = options_get_number(global_s_options, "prefix"); |
*prefix = options_get_number(global_s_options, "prefix"); |
if (!args_has(args, 'P')) { |
if (!args_has(args, 'P')) { |
if (*prefix != KEYC_NONE) |
if (*prefix != KEYC_NONE) |
xasprintf(&s, "%s ", key_string_lookup_key(*prefix)); |
xasprintf(&s, "%s ", key_string_lookup_key(*prefix, 0)); |
else |
else |
s = xstrdup(""); |
s = xstrdup(""); |
} else |
} else |
|
|
bd = key_bindings_next(table, bd); |
bd = key_bindings_next(table, bd); |
continue; |
continue; |
} |
} |
key = args_escape(key_string_lookup_key(bd->key)); |
key = args_escape(key_string_lookup_key(bd->key, 0)); |
|
|
if (bd->flags & KEY_BINDING_REPEAT) |
if (bd->flags & KEY_BINDING_REPEAT) |
repeat = 1; |
repeat = 1; |
|
|
continue; |
continue; |
} |
} |
found = 1; |
found = 1; |
key = args_escape(key_string_lookup_key(bd->key)); |
key = args_escape(key_string_lookup_key(bd->key, 0)); |
|
|
if (!repeat) |
if (!repeat) |
r = ""; |
r = ""; |