commit c5e28b5fe9a0767995498b3cac24f9ac3c3bbb74
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Fri Jan 1 11:17:03 2016 +0100
Commit:     sin <[email protected]>
CommitDate: Fri Jan 1 10:39:59 2016 +0000

    ed: Don't show size of files in no diagnosistic mode
    
    -s flag disables such warnings.

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;

Reply via email to