diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-09 23:18:51 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-09 23:18:51 +0000 |
commit | d2efda8198d7b79306168747ae09a0e46d3d8602 (patch) | |
tree | ad9cf1f63ee4f9a452e98b16134cb8efc1a21775 | |
parent | 8eceafee0e08a00d75f4c6bab5fdfe59464dd30a (diff) | |
download | mandoc-d2efda8198d7b79306168747ae09a0e46d3d8602.tar.gz |
Forgot to make whatis the default during abstraction. Do it again.
-rw-r--r-- | cgi.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -128,6 +128,7 @@ kval_query(struct query *q, const struct kval *fields, size_t sz) int i, legacy; memset(q, 0, sizeof(struct query)); + q->whatis = 1; legacy = -1; for (i = 0; i < (int)sz; i++) @@ -502,8 +503,9 @@ resp_search(struct res *r, size_t sz, void *arg) kval_query(&q, req->fields, req->fieldsz); if (0 == sz) { - puts("<P>\n" - "No results found."); + printf("<P>\n" + "No %s results found.", + q.whatis ? "whatis" : "apropos"); if (q.whatis) { printf("(Try <A HREF=\""); html_print(progname); |