summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 51ba58bc..e5a3976b 100644
--- a/main.c
+++ b/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();