nano

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

commit ed60e1697442778a8131a753a0785514b192f0ec
parent 47c11ae83da877800e1bea312086f10c4acdfd94
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri,  4 Mar 2022 12:12:48 +0100

tweaks: exclude the extra truncation warning from the tiny version

Diffstat:
Msrc/files.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/files.c b/src/files.c @@ -1993,6 +1993,7 @@ bool write_file(const char *name, FILE *thefile, bool normal, statusline(ALERT, _("Error writing %s: %s"), realname, strerror(errno)); cleanup_and_exit: +#ifndef NANO_TINY if (errno == ENOSPC && normal) { napms(3200); lastmessage = VACUUM; statusline(ALERT, _("File on disk has been truncated!")); @@ -2000,6 +2001,7 @@ bool write_file(const char *name, FILE *thefile, bool normal, statusline(ALERT, _("Maybe ^T^Z, make room on disk, resume, then ^S^X")); stat_with_alloc(realname, &openfile->statinfo); } +#endif free(tempname); free(realname); return FALSE;