From b4c9f6edbae30197ac2ffbc8d0c3e01d280033c1 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 28 Jul 2017 10:59:58 +0000 Subject: [PATCH] Show pane title in window list for windows with only one pane. --- window-tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);