summaryrefslogtreecommitdiffstats
path: root/window-tree.c
diff options
context:
space:
mode:
authornicm <nicm>2017-07-28 10:59:58 +0000
committernicm <nicm>2017-07-28 10:59:58 +0000
commitb4c9f6edbae30197ac2ffbc8d0c3e01d280033c1 (patch)
tree9131a8145062943832c69a0b094164c10e0c6987 /window-tree.c
parent3df7c91f1afbf9059800d54c6efd3ae3f051001b (diff)
Show pane title in window list for windows with only one pane.
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 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);