aboutsummaryrefslogtreecommitdiff
path: root/cmd-list-keys.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-04-12 12:01:32 +0100
committerThomas Adam <thomas@xteddy.org>2021-04-12 12:01:32 +0100
commitbedf2bd4372c60a525c22e6309f329cfd0bd07bc (patch)
treea0b3c4c57781899c1c3d74c12a11a10f69fb7682 /cmd-list-keys.c
parent83cd593b9cce8bbdfd8014e13393ec1f1ec90f2e (diff)
parente6abe55134df1b9dc3b7dd7f3a65dff272a35bb7 (diff)
downloadrtmux-bedf2bd4372c60a525c22e6309f329cfd0bd07bc.tar.gz
rtmux-bedf2bd4372c60a525c22e6309f329cfd0bd07bc.tar.bz2
rtmux-bedf2bd4372c60a525c22e6309f329cfd0bd07bc.zip
Merge branch 'obsd-master' into master
Diffstat (limited to 'cmd-list-keys.c')
-rw-r--r--cmd-list-keys.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd-list-keys.c b/cmd-list-keys.c
index dd82e57e..ca4bf752 100644
--- a/cmd-list-keys.c
+++ b/cmd-list-keys.c
@@ -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);