source@mandoc.bsd.lv
 help / color / 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, back to index

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

source@mandoc.bsd.lv

Archives are clonable: git clone --mirror http://inbox.vuxu.org/mandoc-source

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.mandoc.source


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git