Add a flag to disable keys to close a message, GitHub issue 2625.

This commit is contained in:
nicm
2021-04-12 09:36:12 +00:00
parent cd208c9d72
commit e6abe55134
11 changed files with 35 additions and 21 deletions

View File

@ -113,9 +113,10 @@ cmd_list_keys_print_notes(struct cmdq_item *item, struct args *args,
else
note = xstrdup(bd->note);
tmp = utf8_padcstr(key, keywidth + 1);
if (args_has(args, '1') && tc != NULL)
status_message_set(tc, -1, 1, "%s%s%s", prefix, tmp, note);
else
if (args_has(args, '1') && tc != NULL) {
status_message_set(tc, -1, 1, 0, "%s%s%s", prefix, tmp,
note);
} else
cmdq_print(item, "%s%s%s", prefix, tmp, note);
free(tmp);
free(note);