diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-07-15 21:41:08 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-07-15 21:41:08 +0000 |
commit | 97d02e918d0fd00dba7445c5bb7040e232a5ed6f (patch) | |
tree | 5bfaa0a7000290fc9c74ce5a1c5ab77e48230eaf /main.c | |
parent | 0afdbc2d6f1166669ab799d0a3305e9e930ff5ce (diff) | |
download | mandoc-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); |