From: schwarze Date: Thu, 21 Aug 2014 20:27:03 +0000 (+0000) Subject: Bugfix: make whatis(1) case-insensitive again. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=17a213c6377b59deb46a8e73357e984cef706d98;p=openbsd Bugfix: make whatis(1) case-insensitive again. The traditional whatis(1) was case-insensitve and it's still documented that way, that but apparently got broken with or after the switch. --- diff --git a/usr.bin/mandoc/mansearch.c b/usr.bin/mandoc/mansearch.c index 32fb2d9fe6b..8cc8e6ee9ad 100644 --- a/usr.bin/mandoc/mansearch.c +++ b/usr.bin/mandoc/mansearch.c @@ -1,4 +1,4 @@ -/* $Id: mansearch.c,v 1.31 2014/08/09 14:24:49 schwarze Exp $ */ +/* $Id: mansearch.c,v 1.32 2014/08/21 20:27:03 schwarze Exp $ */ /* * Copyright (c) 2012 Kristaps Dzonsons * Copyright (c) 2013, 2014 Ingo Schwarze @@ -769,6 +769,7 @@ exprterm(const struct mansearch *search, char *buf, int cs) if (MANSEARCH_WHATIS & search->flags) { e->substr = NULL; mandoc_asprintf(&val, "[[:<:]]%s[[:>:]]", buf); + cs = 0; } if (NULL == e->substr) {