mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Use a separate define for each default format template and strip clutter
from the choose-tree defaults.
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user