mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Remove duplicate check that strsubmatch() already does; while here, fix a
comment.
This commit is contained in:
parent
eb43101591
commit
972e28d58c
4
search.c
4
search.c
@ -57,7 +57,7 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
|
|||||||
struct client_ctx *cc = (struct client_ctx *)mi->ctx;
|
struct client_ctx *cc = (struct client_ctx *)mi->ctx;
|
||||||
|
|
||||||
/* Match on label. */
|
/* Match on label. */
|
||||||
if ((cc->label) && strsubmatch(search, cc->label, 0))
|
if (strsubmatch(search, cc->label, 0))
|
||||||
tier = 0;
|
tier = 0;
|
||||||
|
|
||||||
/* Match on window name history, from present to past. */
|
/* Match on window name history, from present to past. */
|
||||||
@ -69,7 +69,7 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Match on window class name. */
|
/* Match on window resource class. */
|
||||||
if ((tier < 0) && strsubmatch(search, cc->ch.res_class, 0))
|
if ((tier < 0) && strsubmatch(search, cc->ch.res_class, 0))
|
||||||
tier = 3;
|
tier = 3;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user