From 8d9cd5cdd95aa9923e4a071a9e4c7f63545120d4 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 21 Aug 2014 20:29:07 +0000 Subject: 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. --- mansearch.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit