summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-list-keys.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-05-16 15:54:20 +0000
committernicm <nicm@openbsd.org>2020-05-16 15:54:20 +0000
commit4f4307f96d7cd8f9035841037f24bee3a3a2b0ee (patch)
tree55e88cf5fc54d4698bb8dbb65ceda6031e2cdea9 /usr.bin/tmux/cmd-list-keys.c
parentWhen IMSG_IFADD is removed, IMSG_IFDELETE becomes useless (diff)
downloadwireguard-openbsd-4f4307f96d7cd8f9035841037f24bee3a3a2b0ee.tar.xz
wireguard-openbsd-4f4307f96d7cd8f9035841037f24bee3a3a2b0ee.zip
Support embedded styles in the display-message message, GitHub issue
2206.
Diffstat (limited to 'usr.bin/tmux/cmd-list-keys.c')
-rw-r--r--usr.bin/tmux/cmd-list-keys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-list-keys.c b/usr.bin/tmux/cmd-list-keys.c
index c6c1ed57eff..d61d8c682fc 100644
--- a/usr.bin/tmux/cmd-list-keys.c
+++ b/usr.bin/tmux/cmd-list-keys.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-list-keys.c,v 1.56 2020/04/13 20:51:57 nicm Exp $ */
+/* $OpenBSD: cmd-list-keys.c,v 1.57 2020/05/16 15:54:20 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -112,7 +112,7 @@ cmd_list_keys_print_notes(struct cmdq_item *item, struct args *args,
note = xstrdup(bd->note);
tmp = utf8_padcstr(key, keywidth + 1);
if (args_has(args, '1') && tc != NULL)
- status_message_set(tc, "%s%s%s", prefix, tmp, note);
+ status_message_set(tc, 1, "%s%s%s", prefix, tmp, note);
else
cmdq_print(item, "%s%s%s", prefix, tmp, note);
free(tmp);