diff options
author | nicm <nicm> | 2018-04-18 14:35:37 +0000 |
---|---|---|
committer | nicm <nicm> | 2018-04-18 14:35:37 +0000 |
commit | 3dceddd70ea8491aed082efbb551ca352e97e03d (patch) | |
tree | bf5333f77aef71b6d6069664247b3708566da00c /cmd-find.c | |
parent | 2595718dd39a2aa66885b202c8ab04e0549370a4 (diff) |
Change how display-message uses the client. Originally it was only
intended as the target client where the message should be displayed but
at some point (perhaps when -p was added), it was used for format
expansion too. This means it can get a bit weird where you have client
formats expanding for a client with a different current session than the
target session.
However, it is nice that display-message can be used to show information
about a specific client. So change so that the -c client will be used if
the session matches the target session (-t or default), otherwise the
best client will be chosen.
Diffstat (limited to 'cmd-find.c')
-rw-r--r-- | cmd-find.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -122,7 +122,7 @@ cmd_find_client_better(struct client *c, struct client *than) } /* Find best client for session. */ -static struct client * +struct client * cmd_find_best_client(struct session *s) { struct client *c_loop, *c; |