aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mansearch.c
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
commita42f210a473e732d8b21465b45c0c5e09d2144e8 (patch)
tree2fd7a174a402bdd5811b103e63e88b592d79bce5 /mansearch.c
parent5eec60b6e3415a34bd5237de153e27e9800dba8e (diff)
downloadmandoc-a42f210a473e732d8b21465b45c0c5e09d2144e8.tar.gz
mandoc-a42f210a473e732d8b21465b45c0c5e09d2144e8.tar.zst
mandoc-a42f210a473e732d8b21465b45c0c5e09d2144e8.zip
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.
Diffstat (limited to 'mansearch.c')
-rw-r--r--mansearch.c3
1 files changed, 2 insertions, 1 deletions
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 <kristaps@bsd.lv>
* Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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;