diff options
Diffstat (limited to 'cmd-display-message.c')
-rw-r--r-- | cmd-display-message.c | 6 |
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)); |