nano

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

commit e917ef0105a47725e9787782daa4afa05e21253c
parent 3347682fd03641aca4b084bba86f88d90d8ae98c
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 16 Oct 2019 12:27:27 +0200

tweaks: die on an impossible condition -- to be removed later

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

diff --git a/src/files.c b/src/files.c @@ -1535,7 +1535,7 @@ bool write_file(const char *name, FILE *f_open, bool tmp, /* The number of lines written, for feedback on the status bar. */ if (*name == '\0') - return -1; + die("Tried to write a nameless file"); realname = real_dir_from_tilde(name);