source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: don't print the final heads-up about messages when a search did
@ 2019-07-15 21:41 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-07-15 21:41 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-15 21:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-15 21:41 mandoc: don't print the final heads-up about messages when a search did schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).