aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--search.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/search.c b/search.c
index 7cb6167..3a9e1e7 100644
--- a/search.c
+++ b/search.c
@@ -71,7 +71,6 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
{
struct menu *mi, *tierp[3], *before = NULL;
struct client_ctx *cc;
- struct winname *wn;
(void)memset(tierp, 0, sizeof(tierp));
@@ -86,11 +85,8 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
/* Match on window name history, from present to past. */
if (tier < 0) {
- TAILQ_FOREACH_REVERSE(wn, &cc->nameq, name_q, entry)
- if (match_substr(search, wn->name, 0)) {
- tier = 1;
- break;
- }
+ if (match_substr(search, cc->name, 0))
+ tier = 1;
}
/* Match on window resource class. */