Sync OpenBSD patchset 1125:

Strip layout from choose-windows again (leave in list-windows),
suggested by Romain Francoise, diff from Thomas Adam.
This commit is contained in:
Tiago Cunha 2012-05-30 13:45:16 +00:00
parent 30b23baaf5
commit 7c7bd14c61
2 changed files with 4 additions and 4 deletions

View File

@ -84,7 +84,9 @@ cmd_list_windows_session(
if (template == NULL) {
switch (type) {
case 0:
template = DEFAULT_WINDOW_TEMPLATE;
template = DEFAULT_WINDOW_TEMPLATE \
" [layout #{window_layout}] #{window_id}" \
" #{?window_active, (active),}";
break;
case 1:
template = "#{session_name}:" DEFAULT_WINDOW_TEMPLATE;

4
tmux.h
View File

@ -113,9 +113,7 @@ extern char **environ;
#define DEFAULT_WINDOW_TEMPLATE \
"#{window_index}: #{window_name}#{window_flags} " \
"(#{window_panes} panes) " \
"[#{window_width}x#{window_height}] " \
"[layout #{window_layout}] #{window_id}" \
"#{?window_active, (active),}"
"[#{window_width}x#{window_height}]"
#define DEFAULT_PANE_INFO_TEMPLATE \
"#{session_name}:#{window_index}.#{pane_index}"