nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit bea5e85f3ea79d1838e027b5d0880aa018686d84
parent 32ee39e44acf3db42b3e7836a6a81fafc61e6d97
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri,  5 Jun 2020 12:01:55 +0200

tweaks: make an error message more accurate and reduce it to its essence

There is no need to be explicit about not having saved the buffer --
it is implied in the "Too many".  And anyway, no one is ever going to
see this message -- who will have a hundred thousand .save files?
Trimming this message makes the tiny version smaller.

Also, rewrap a neighbouring line.

Diffstat:
Msrc/nano.c | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -332,11 +332,10 @@ void emergency_save(const char *die_filename, struct stat *die_stat) if (!failed) fprintf(stderr, _("\nBuffer written to %s\n"), targetname); else if (*targetname != '\0') - fprintf(stderr, _("\nBuffer not written to %s: %s\n"), targetname, - strerror(errno)); + fprintf(stderr, _("\nBuffer not written to %s: %s\n"), + targetname, strerror(errno)); else - fprintf(stderr, _("\nBuffer not written: %s\n"), - _("Too many backup files?")); + fprintf(stderr, _("\nToo many .save files")); #ifndef NANO_TINY /* Try to chmod/chown the saved file to the values of the original file,