summaryrefslogtreecommitdiffstats
path: root/window-tree.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-07-28 14:01:13 +0100
committerThomas Adam <thomas@xteddy.org>2017-07-28 14:01:13 +0100
commited8ddf2449267c1f1383e4eb20219b39d91dfdc4 (patch)
treec14dd3d0506c8e1af2707a213c0c10f81ffc3d6f /window-tree.c
parenta704f5797171743558d9c6c8cbf9d8bc96cf2433 (diff)
parentb4c9f6edbae30197ac2ffbc8d0c3e01d280033c1 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'window-tree.c')
-rw-r--r--window-tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/window-tree.c b/window-tree.c
index 57cda055..a8d7a3fe 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);