1
0
mirror of https://github.com/tmux/tmux.git synced 2025-04-21 20:08:48 +00:00

Line up keys in tree mode, and don't expand windows with one pane. From

Thomas Adam.
This commit is contained in:
nicm 2017-07-12 14:31:06 +00:00
parent fba6140a4a
commit 8b84fc177c
2 changed files with 5 additions and 1 deletions

View File

@ -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);