Sync OpenBSD patchset 1162:

Use a separate define for each default format template and strip clutter
from the choose-tree defaults.
This commit is contained in:
Tiago Cunha
2012-08-31 09:18:50 +00:00
parent d50f157f7e
commit 1c608031b5
13 changed files with 66 additions and 30 deletions

View File

@@ -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;
}
}