aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--window-tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/window-tree.c b/window-tree.c
index 82a39821..feaa95e2 100644
--- a/window-tree.c
+++ b/window-tree.c
@@ -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);