version 1.240, 2020/04/13 14:46:04 |
version 1.241, 2020/04/13 20:51:57 |
|
|
|
|
/* Expand a single string using target. */ |
/* Expand a single string using target. */ |
char * |
char * |
format_single_from_target(struct cmdq_item *item, const char *fmt, |
format_single_from_target(struct cmdq_item *item, const char *fmt) |
struct client *c) |
|
{ |
{ |
struct cmd_find_state *target = cmdq_get_target(item); |
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. */ |
/* Set defaults for any of arguments that are not NULL. */ |