Change -t on display-message to be target-pane for the #[A-Z]

replacements and add -c as target-client.
This commit is contained in:
Nicholas Marriott
2011-03-29 19:30:16 +00:00
parent f19a4bf9d1
commit d88c20e718
6 changed files with 58 additions and 29 deletions

View File

@ -614,7 +614,7 @@ server_client_set_title(struct client *c)
template = options_get_string(&s->options, "set-titles-string");
title = status_replace(c, NULL, template, time(NULL), 1);
title = status_replace(c, NULL, NULL, NULL, template, time(NULL), 1);
if (c->title == NULL || strcmp(title, c->title) != 0) {
if (c->title != NULL)
xfree(c->title);