diff options
Diffstat (limited to 'window-tree.c')
-rw-r--r-- | window-tree.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/window-tree.c b/window-tree.c index 272e4d0a..82a39821 100644 --- a/window-tree.c +++ b/window-tree.c @@ -258,8 +258,12 @@ window_tree_build_window(struct session *s, struct winlink *wl, void* modedata, free(text); free(name); + if (window_count_panes(wl->window) == 1) + return (1); + l = NULL; n = 0; + TAILQ_FOREACH(wp, &wl->window->panes, entry) { if (filter != NULL) { cp = format_single(NULL, filter, NULL, s, wl, wp); |