mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Accept 0 time as a shorthand for now to format_expand_time.
This commit is contained in:
@ -1537,7 +1537,7 @@ server_client_set_title(struct client *c)
|
||||
ft = format_create(c, NULL, FORMAT_NONE, 0);
|
||||
format_defaults(ft, c, NULL, NULL, NULL);
|
||||
|
||||
title = format_expand_time(ft, template, time(NULL));
|
||||
title = format_expand_time(ft, template, 0);
|
||||
if (c->title == NULL || strcmp(title, c->title) != 0) {
|
||||
free(c->title);
|
||||
c->title = xstrdup(title);
|
||||
|
Reference in New Issue
Block a user