From a42f210a473e732d8b21465b45c0c5e09d2144e8 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mansearch.c') diff --git a/mansearch.c b/mansearch.c index 8a38c657..0ede3e66 100644 --- a/mansearch.c +++ b/mansearch.c @@ -1,4 +1,4 @@ -/* $Id: mansearch.c,v 1.45 2014/08/17 03:24:47 schwarze Exp $ */ +/* $Id: mansearch.c,v 1.46 2014/08/21 20:29:07 schwarze Exp $ */ /* * Copyright (c) 2012 Kristaps Dzonsons * Copyright (c) 2013, 2014 Ingo Schwarze @@ -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 v1.2.3-56-ge451