aboutsummaryrefslogtreecommitdiff
path: root/format.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 /format.c
parent2159ff3256df4b823dfaed24e64047249cf079c2 (diff)
parentfc83517913c8280c222a6cf78ca7fb8053421b37 (diff)
downloadrtmux-653a159225609f7e5efb45bc78cdf7b480d7ef93.tar.gz
rtmux-653a159225609f7e5efb45bc78cdf7b480d7ef93.tar.bz2
rtmux-653a159225609f7e5efb45bc78cdf7b480d7ef93.zip
Merge branch 'obsd-master'
Diffstat (limited to 'format.c')
-rw-r--r--format.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/format.c b/format.c
index 8f06da7b..dde39cdf 100644
--- a/format.c
+++ b/format.c
@@ -2429,12 +2429,12 @@ format_single(struct cmdq_item *item, const char *fmt, struct client *c,
/* Expand a single string using target. */
char *
-format_single_from_target(struct cmdq_item *item, const char *fmt,
- struct client *c)
+format_single_from_target(struct cmdq_item *item, const char *fmt)
{
struct cmd_find_state *target = cmdq_get_target(item);
+ struct client *tc = cmdq_get_target_client(item);
- return (format_single(item, fmt, c, target->s, target->wl, target->wp));
+ return (format_single(item, fmt, tc, target->s, target->wl, target->wp));
}
/* Set defaults for any of arguments that are not NULL. */