when a search did not yield any manual pages to display;
issue found with regress/usr.bin/mandoc/db/
-/* $Id: main.c,v 1.330 2019/07/14 18:16:13 schwarze Exp $ */
+/* $Id: main.c,v 1.331 2019/07/15 21:41:08 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2012, 2014-2019 Ingo Schwarze <schwarze@openbsd.org>
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();