summaryrefslogtreecommitdiffstats
path: root/cgi.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cgi.c b/cgi.c
index c42abdca..5b17026a 100644
--- a/cgi.c
+++ b/cgi.c
@@ -977,6 +977,7 @@ pg_search(const struct req *req)
search.sec = req->q.sec;
search.outkey = "Nd";
search.argmode = req->q.equal ? ARG_NAME : ARG_EXPR;
+ search.firstmatch = 1;
paths.sz = 1;
paths.paths = mandoc_malloc(sizeof(char *));