Accept 0 time as a shorthand for now to format_expand_time.

This commit is contained in:
nicm
2019-03-14 21:27:26 +00:00
parent 9bd4b96766
commit 1416ceb575
4 changed files with 5 additions and 3 deletions

View File

@ -110,7 +110,7 @@ cmd_pipe_pane_exec(struct cmd *self, struct cmdq_item *item)
/* Expand the command. */
ft = format_create(item->client, item, FORMAT_NONE, 0);
format_defaults(ft, c, s, wl, wp);
cmd = format_expand_time(ft, args->argv[0], time(NULL));
cmd = format_expand_time(ft, args->argv[0], 0);
format_free(ft);
/* Fork the child. */