summaryrefslogtreecommitdiffstats
path: root/cmd-display-message.c
diff options
context:
space:
mode:
authornicm <nicm>2015-12-11 12:27:36 +0000
committernicm <nicm>2015-12-11 12:27:36 +0000
commit01831da5f5dd2a1b7622ad421a757cacedbdfc59 (patch)
treec366c7371b12b5633c551cb9862cb9068bff93c6 /cmd-display-message.c
parente0f26dcda36dc35741da6047a11efb853b3137d9 (diff)
Add cmdq as an argument to format_create and add a format for the
command name (will also be used for more later).
Diffstat (limited to 'cmd-display-message.c')
-rw-r--r--cmd-display-message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-display-message.c b/cmd-display-message.c
index 2fb76caa..7ca8e9c4 100644
--- a/cmd-display-message.c
+++ b/cmd-display-message.c
@@ -88,7 +88,7 @@ cmd_display_message_exec(struct cmd *self, struct cmd_q *cmdq)
if (template == NULL)
template = DISPLAY_MESSAGE_TEMPLATE;
- ft = format_create(0);
+ ft = format_create(cmdq, 0);
format_defaults(ft, c, s, wl, wp);
msg = format_expand_time(ft, template, time(NULL));