From 4946f74253de52f10beb023d4c5b88bafdb11ec4 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 5 Feb 2015 10:29:43 +0000 Subject: Wrap all the individual format_* calls in a single format_defaults functions. --- cmd-list-panes.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cmd-list-panes.c') diff --git a/cmd-list-panes.c b/cmd-list-panes.c index 7f62177b..bd34344f 100644 --- a/cmd-list-panes.c +++ b/cmd-list-panes.c @@ -128,9 +128,7 @@ cmd_list_panes_window(struct cmd *self, TAILQ_FOREACH(wp, &wl->window->panes, entry) { ft = format_create(); format_add(ft, "line", "%u", n); - format_session(ft, s); - format_winlink(ft, s, wl); - format_window_pane(ft, wp); + format_defaults(ft, NULL, s, wl, wp); line = format_expand(ft, template); cmdq_print(cmdq, "%s", line); -- cgit