mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Accept 0 time as a shorthand for now to format_expand_time.
This commit is contained in:
@ -86,7 +86,7 @@ cmd_display_message_exec(struct cmd *self, struct cmdq_item *item)
|
||||
ft = format_create(item->client, item, FORMAT_NONE, 0);
|
||||
format_defaults(ft, target_c, s, wl, wp);
|
||||
|
||||
msg = format_expand_time(ft, template, time(NULL));
|
||||
msg = format_expand_time(ft, template, 0);
|
||||
if (args_has(self->args, 'p'))
|
||||
cmdq_print(item, "%s", msg);
|
||||
else if (c != NULL)
|
||||
|
Reference in New Issue
Block a user