summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;