From bd4ac0caa6af8db097dfcea72cc201a25e9132c6 Mon Sep 17 00:00:00 2001
From: Michael Grant <mgrant@grant.org>
Date: Thu, 20 Mar 2025 20:41:40 -0300
Subject: [PATCH] remove the return because otherwise if there is only one wp
 it still needs to continue

---
 window-tree.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/window-tree.c b/window-tree.c
index 07d2bc2e..5c09ac8a 100644
--- a/window-tree.c
+++ b/window-tree.c
@@ -373,7 +373,6 @@ window_tree_build_window(struct session *s, struct winlink *wl,
 	if (TAILQ_NEXT(wp, entry) == NULL) {
 		if (!window_tree_filter_pane(s, wl, wp, filter))
 			goto empty;
-		return (1);
 	}
 
 	l = NULL;