summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-display-message.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-03-14 23:14:27 +0000
committernicm <nicm@openbsd.org>2019-03-14 23:14:27 +0000
commita7d9196c0eb95f9e9ed312d77e46a1d9cd381d6d (patch)
treec17a2af4a79d510ef355860e8b571103c67d4323 /usr.bin/tmux/cmd-display-message.c
parentRemove some unnecessary temporary variables and be much less strict (diff)
downloadwireguard-openbsd-a7d9196c0eb95f9e9ed312d77e46a1d9cd381d6d.tar.xz
wireguard-openbsd-a7d9196c0eb95f9e9ed312d77e46a1d9cd381d6d.zip
Store the time in the format tree rather than passing it around.
Diffstat (limited to 'usr.bin/tmux/cmd-display-message.c')
-rw-r--r--usr.bin/tmux/cmd-display-message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-display-message.c b/usr.bin/tmux/cmd-display-message.c
index 203bfdf54ff..413db1403dd 100644
--- a/usr.bin/tmux/cmd-display-message.c
+++ b/usr.bin/tmux/cmd-display-message.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-display-message.c,v 1.45 2019/03/14 21:27:26 nicm Exp $ */
+/* $OpenBSD: cmd-display-message.c,v 1.46 2019/03/14 23:14:27 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -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, 0);
+ msg = format_expand_time(ft, template);
if (args_has(self->args, 'p'))
cmdq_print(item, "%s", msg);
else if (c != NULL)