=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/window-customize.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/tmux/window-customize.c 2020/05/16 16:16:07 1.2 --- src/usr.bin/tmux/window-customize.c 2020/05/16 16:35:13 1.3 *************** *** 1,4 **** ! /* $OpenBSD: window-customize.c,v 1.2 2020/05/16 16:16:07 nicm Exp $ */ /* * Copyright (c) 2020 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: window-customize.c,v 1.3 2020/05/16 16:35:13 nicm Exp $ */ /* * Copyright (c) 2020 Nicholas Marriott *************** *** 460,466 **** bd = key_bindings_first(kt); while (bd != NULL) { ! format_add(ft, "key", "%s", key_string_lookup_key(bd->key)); if (bd->note != NULL) format_add(ft, "key_note", "%s", bd->note); if (filter != NULL) { --- 460,466 ---- bd = key_bindings_first(kt); while (bd != NULL) { ! format_add(ft, "key", "%s", key_string_lookup_key(bd->key, 0)); if (bd->note != NULL) format_add(ft, "key_note", "%s", bd->note); if (filter != NULL) { *************** *** 1233,1239 **** if (strcmp(s, "Repeat") == 0) bd->flags ^= KEY_BINDING_REPEAT; else if (strcmp(s, "Command") == 0) { ! xasprintf(&prompt, "(%s) ", key_string_lookup_key(key)); value = cmd_list_print(bd->cmdlist, 0); new_item = xcalloc(1, sizeof *new_item); --- 1233,1239 ---- if (strcmp(s, "Repeat") == 0) bd->flags ^= KEY_BINDING_REPEAT; else if (strcmp(s, "Command") == 0) { ! xasprintf(&prompt, "(%s) ", key_string_lookup_key(key, 0)); value = cmd_list_print(bd->cmdlist, 0); new_item = xcalloc(1, sizeof *new_item); *************** *** 1250,1256 **** free(prompt); free(value); } else if (strcmp(s, "Note") == 0) { ! xasprintf(&prompt, "(%s) ", key_string_lookup_key(key)); new_item = xcalloc(1, sizeof *new_item); new_item->data = data; --- 1250,1256 ---- free(prompt); free(value); } else if (strcmp(s, "Note") == 0) { ! xasprintf(&prompt, "(%s) ", key_string_lookup_key(key, 0)); new_item = xcalloc(1, sizeof *new_item); new_item->data = data; *************** *** 1395,1401 **** break; if (item->scope == WINDOW_CUSTOMIZE_KEY) { xasprintf(&prompt, "Unbind key %s? ", ! key_string_lookup_key(item->key)); } else xasprintf(&prompt, "Unset option %s? ", item->name); data->references++; --- 1395,1401 ---- break; if (item->scope == WINDOW_CUSTOMIZE_KEY) { xasprintf(&prompt, "Unbind key %s? ", ! key_string_lookup_key(item->key, 0)); } else xasprintf(&prompt, "Unset option %s? ", item->name); data->references++;