From 08ab650ce0d4d699e7e062d439ab6c8858bad65a Mon Sep 17 00:00:00 2001 From: Wynn Wolf Arbor Date: Wed, 18 Mar 2020 19:46:54 +0100 Subject: Remove matching on window title history Obscure feature. Confusing if you don't know about it, mostly useless if you do. Matching on currently visible window titles is enough. --- search.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'search.c') 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. */ -- cgit v1.2.3-2-gb3c3