aboutsummaryrefslogtreecommitdiff
path: root/cmd-list-keys.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-04-14 00:01:41 +0100
committerThomas Adam <thomas@xteddy.org>2020-04-14 00:01:41 +0100
commit653a159225609f7e5efb45bc78cdf7b480d7ef93 (patch)
treede075bcb7fdbd8a3fbd9f800c3a04c63cfdfac6b /cmd-list-keys.c
parent2159ff3256df4b823dfaed24e64047249cf079c2 (diff)
parentfc83517913c8280c222a6cf78ca7fb8053421b37 (diff)
downloadrtmux-653a159225609f7e5efb45bc78cdf7b480d7ef93.tar.gz
rtmux-653a159225609f7e5efb45bc78cdf7b480d7ef93.tar.bz2
rtmux-653a159225609f7e5efb45bc78cdf7b480d7ef93.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-list-keys.c')
-rw-r--r--cmd-list-keys.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-list-keys.c b/cmd-list-keys.c
index cfdceee7..1141bbb5 100644
--- a/cmd-list-keys.c
+++ b/cmd-list-keys.c
@@ -85,7 +85,7 @@ static int
cmd_list_keys_print_notes(struct cmdq_item *item, struct args *args,
const char *tablename, u_int keywidth, key_code only, const char *prefix)
{
- struct client *c = cmd_find_client(item, NULL, 1);
+ struct client *tc = cmdq_get_target_client(item);
struct key_table *table;
struct key_binding *bd;
const char *key;
@@ -111,8 +111,8 @@ 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') && c != NULL)
- status_message_set(c, "%s%s%s", prefix, tmp, note);
+ if (args_has(args, '1') && tc != NULL)
+ status_message_set(tc, "%s%s%s", prefix, tmp, note);
else
cmdq_print(item, "%s%s%s", prefix, tmp, note);
free(tmp);