sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit 93f34c1840850b3d592df515563225bf91d7b457
parent fb16e7c6ad0e8d27cba8ee6279f71f88c7f95fd7
Author: Andrea Calligaris <recluse@email.it>
Date:   Wed,  8 Feb 2023 17:35:08 +0100

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

Diffstat:
Med.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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