summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-21 20:29:07 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-21 20:29:07 +0000
commit8d9cd5cdd95aa9923e4a071a9e4c7f63545120d4 (patch)
tree4e09dc605aa6608f07b8df71e33b6b055802be9c
parent4a92d35e35b13fe8050447c6b17c86b6c4695068 (diff)
downloadmandoc-8d9cd5cdd95aa9923e4a071a9e4c7f63545120d4.tar.gz
Bugfix: make whatis(1) case-insensitive again.
The traditional whatis(1) was case-insensitve and it's still documented that way, but that apparently got broken with or after the switch.
-rw-r--r--mansearch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mansearch.c b/mansearch.c
index a4d03d08..82518001 100644
--- a/mansearch.c
+++ b/mansearch.c
@@ -768,6 +768,7 @@ exprterm(const struct mansearch *search, char *buf, int cs)
e->bits = TYPE_Nm;
e->substr = NULL;
mandoc_asprintf(&val, "[[:<:]]%s[[:>:]]", buf);
+ cs = 0;
} else if ((val = strpbrk(buf, "=~")) == NULL) {
e->bits = TYPE_Nm | TYPE_Nd;
e->substr = buf;