aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-07-15 21:41:08 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-07-15 21:41:08 +0000
commit48ed051e49ce663a8f2cea764807791fd842ef8e (patch)
tree6f279af67d836ffe1f17071183d60190f0cc7fb7 /main.c
parenta1ad72824dd4e1389339062d26170a255f62f29d (diff)
downloadmandoc-48ed051e49ce663a8f2cea764807791fd842ef8e.tar.gz
mandoc-48ed051e49ce663a8f2cea764807791fd842ef8e.tar.zst
mandoc-48ed051e49ce663a8f2cea764807791fd842ef8e.zip
don't print the final heads-up about messages
when a search did not yield any manual pages to display; issue found with regress/usr.bin/mandoc/db/
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index 93c08205..a535023b 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.330 2019/07/14 18:16:13 schwarze Exp $ */
+/* $Id: main.c,v 1.331 2019/07/15 21:41:08 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2012, 2014-2019 Ingo Schwarze <schwarze@openbsd.org>
@@ -727,7 +727,8 @@ out:
signum = WSTOPSIG(status);
}
tag_unlink();
- } else if (curp.outtype != OUTT_LINT)
+ } else if (curp.outtype != OUTT_LINT &&
+ (search.argmode == ARG_FILE || sz > 0))
mandoc_msg_summary();
return (int)mandoc_msg_getrc();