diff --git a/ed.c b/ed.c index 1cf0d60..7e7fbb6 100644 --- a/ed.c +++ b/ed.c @@ -623,7 +623,8 @@ doread(char *fname) } inject(s); } - printf("%zu\n", cnt); + if (optdiag) + printf("%zu\n", cnt); aux = fp; fp = NULL;