Show pane title in window list for windows with only one pane.

pull/1033/head
nicm 2017-07-28 10:59:58 +00:00
parent 3df7c91f1a
commit b4c9f6edba
1 changed files with 2 additions and 1 deletions

View File

@ -244,7 +244,8 @@ window_tree_build_window(struct session *s, struct winlink *wl, void* modedata,
item->pane = -1;
text = format_single(NULL,
"#{window_name}#{window_flags} (#{window_panes} panes)",
"#{window_name}#{window_flags} (#{window_panes} panes)"
"#{?#{==:#{window_panes},1}, \"#{pane_title}\",}",
NULL, s, wl, NULL);
xasprintf(&name, "%u", wl->idx);