summaryrefslogtreecommitdiffstats
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
commit97d02e918d0fd00dba7445c5bb7040e232a5ed6f (patch)
tree5bfaa0a7000290fc9c74ce5a1c5ab77e48230eaf /main.c
parent0afdbc2d6f1166669ab799d0a3305e9e930ff5ce (diff)
downloadmandoc-97d02e918d0fd00dba7445c5bb7040e232a5ed6f.tar.gz
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 51ba58bc..e5a3976b 100644
--- a/main.c
+++ b/main.c
@@ -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();