Use a separate define for each default format template and strip clutter

from the choose-tree defaults.
This commit is contained in:
Nicholas Marriott
2012-08-14 08:51:53 +00:00
parent 6804d5841e
commit 73c6785538
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;
}
}