From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (mandoc.bsd.lv [local]) by mandoc.bsd.lv (OpenSMTPD) with ESMTPA id 748cd424 for ; Mon, 15 Jul 2019 16:41:38 -0500 (EST) Date: Mon, 15 Jul 2019 16:41:38 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: don't print the final heads-up about messages when a search did X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-ID: <862a075046b392af@mandoc.bsd.lv> Log Message: ----------- 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/ Modified Files: -------------- mandoc: main.c Revision Data ------------- Index: main.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/main.c,v retrieving revision 1.330 retrieving revision 1.331 diff -Lmain.c -Lmain.c -u -p -r1.330 -r1.331 --- main.c +++ 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(); -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv