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

This commit is contained in:
Andrea Calligaris 2023-02-08 17:35:08 +01:00 committed by Michael Forney
parent fb16e7c6ad
commit 93f34c1840
1 changed files with 2 additions and 1 deletions

3
ed.c
View File

@ -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