diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-07-12 16:01:11 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-07-12 16:01:11 +0100 |
commit | e3698e6e1f3d7bfbe50ad74d816751ab465627ce (patch) | |
tree | 75254b12dd1e631d68dda632ec0f3612317ef977 /window-tree.c | |
parent | 5122f3477ff9e874480e6c97eb4627ec37eafd68 (diff) | |
parent | 8b84fc177cf2af7fcb68262a016e6c3e19cd8ba5 (diff) |
Merge branch 'obsd-master'
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 1ea1256e..57cda055 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); |