aboutsummaryrefslogtreecommitdiff
path: root/cmd-list-windows.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-08-31 09:18:50 +0000
committerTiago Cunha <tcunha@gmx.com>2012-08-31 09:18:50 +0000
commit1c608031b596f6e92e575a16a7acd56fb3b78f70 (patch)
treeb91c8d61110743470c9af825f94b91ddda53ae70 /cmd-list-windows.c
parentd50f157f7e9c1b61cada6f1b29dd5465be0b153e (diff)
downloadrtmux-1c608031b596f6e92e575a16a7acd56fb3b78f70.tar.gz
rtmux-1c608031b596f6e92e575a16a7acd56fb3b78f70.tar.bz2
rtmux-1c608031b596f6e92e575a16a7acd56fb3b78f70.zip
Sync OpenBSD patchset 1162:
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 cdebd360..3be8ade8 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;
}
}