diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-07-12 14:31:07 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-07-12 14:31:07 +0000 |
commit | 7d71f2c525078fdc97c2e202106935cf2c40c95e (patch) | |
tree | 55f78a73c910e0e5e2b8b5141ae376307ba1e8c9 /usr.bin/tmux/window-tree.c | |
parent | a1e1b17505b17543c63febc51a9d218fc5363b1f (diff) |
Line up keys in tree mode, and don't expand windows with one pane. From
Thomas Adam.
Diffstat (limited to 'usr.bin/tmux/window-tree.c')
-rw-r--r-- | usr.bin/tmux/window-tree.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/window-tree.c b/usr.bin/tmux/window-tree.c index 69459818db9..77a11d4536b 100644 --- a/usr.bin/tmux/window-tree.c +++ b/usr.bin/tmux/window-tree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window-tree.c,v 1.12 2017/07/07 16:27:26 nicm Exp $ */ +/* $OpenBSD: window-tree.c,v 1.13 2017/07/12 14:31:06 nicm Exp $ */ /* * Copyright (c) 2017 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); |