X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/3d8a6507ca542881a5e8b30ad6b7068a9c4fdeea..eeaffc33432d3cf91902cac3eab50c0598bdaa19:/ui-repolist.c diff --git a/ui-repolist.c b/ui-repolist.c index f622a01..c2bcce1 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -99,14 +99,16 @@ static int is_in_url(struct cgit_repo *repo) { if (!ctx.qry.url) return 1; - if (repo->url && !prefixcmp(repo->url, ctx.qry.url)) + if (repo->url && starts_with(repo->url, ctx.qry.url)) return 1; return 0; } static void print_sort_header(const char *title, const char *sort) { - htmlf("