summaryrefslogtreecommitdiffstats
path: root/cmd-display-message.c
diff options
context:
space:
mode:
authornicm <nicm>2015-02-05 10:29:43 +0000
committernicm <nicm>2015-02-05 10:29:43 +0000
commit4946f74253de52f10beb023d4c5b88bafdb11ec4 (patch)
tree4210eaf66f9aee7998ec558ce34a1c9454ae0b71 /cmd-display-message.c
parente5d9ceff18e37320b9243d24204a0a79d77172e4 (diff)
Wrap all the individual format_* calls in a single format_defaults
functions.
Diffstat (limited to 'cmd-display-message.c')
-rw-r--r--cmd-display-message.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd-display-message.c b/cmd-display-message.c
index f3547b00..0a61fd1e 100644
--- a/cmd-display-message.c
+++ b/cmd-display-message.c
@@ -92,11 +92,7 @@ cmd_display_message_exec(struct cmd *self, struct cmd_q *cmdq)
template = DISPLAY_MESSAGE_TEMPLATE;
ft = format_create();
- if (c != NULL)
- format_client(ft, c);
- format_session(ft, s);
- format_winlink(ft, s, wl);
- format_window_pane(ft, wp);
+ format_defaults(ft, c, s, wl, wp);
t = time(NULL);
len = strftime(out, sizeof out, template, localtime(&t));