nano

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

commit 0abf22512961e6bc3bb334d1f6618a94d60f0989
parent 70bcf752dcc82d1eed04ba4f900ed69ce2b97500
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Tue,  4 Apr 2017 12:21:43 +0200

files: check also for write errors when prepending, not just read errors

Diffstat:
Msrc/files.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/files.c b/src/files.c @@ -1979,7 +1979,7 @@ bool write_file(const char *name, FILE *f_open, bool tmp, goto cleanup_and_exit; } - if (copy_file(f_source, f, TRUE) == -1) { + if (copy_file(f_source, f, TRUE) != 0) { statusline(ALERT, _("Error writing %s: %s"), realname, strerror(errno)); goto cleanup_and_exit;