summaryrefslogtreecommitdiffstats
path: root/cmd-list-windows.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-08-14 08:51:53 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-08-14 08:51:53 +0000
commit73c678553809956f428fec9db3210a5576d5883f (patch)
tree576d926080da3b1404e05ada18435e6ea062a98e /cmd-list-windows.c
parent6804d5841e53a38e2d4a8d574bcece384efa9499 (diff)
Use a separate define for each default format template and strip clutter
from the choose-tree defaults.
Diffstat (limited to 'cmd-list-windows.c')
-rw-r--r--cmd-list-windows.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd-list-windows.c b/cmd-list-windows.c
index 62ae6b11..146d29aa 100644
--- a/cmd-list-windows.c
+++ b/cmd-list-windows.c
@@ -85,12 +85,10 @@ cmd_list_windows_session(
if (template == NULL) {
switch (type) {
case 0:
- template = DEFAULT_WINDOW_TEMPLATE \
- " [layout #{window_layout}] #{window_id}" \
- "#{?window_active, (active),}";
+ template = LIST_WINDOWS_TEMPLATE;
break;
case 1:
- template = "#{session_name}:" DEFAULT_WINDOW_TEMPLATE;
+ template = LIST_WINDOWS_WITH_SESSION_TEMPLATE;
break;
}
}