commit 93f34c1840850b3d592df515563225bf91d7b457
Author:     Andrea Calligaris <[email protected]>
AuthorDate: Wed Feb 8 17:35:08 2023 +0100
Commit:     Michael Forney <[email protected]>
CommitDate: Wed Apr 12 21:01:27 2023 -0700

    ed: Fix 'w' command not respecting '-s' option

diff --git a/ed.c b/ed.c
index 8a0604e..b661ac5 100644
--- a/ed.c
+++ b/ed.c
@@ -642,7 +642,8 @@ dowrite(const char *fname, int trunc)
        strcpy(savfname, fname);
        modflag = 0;
        curln = line;
-       printf("%zu\n", bytecount);
+       if (optdiag)
+               printf("%zu\n", bytecount);
 }
 
 static void

Reply via email to