nano

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

commit 094758be150db889228960b69ea7fe38359ab1c4
parent 06bbc70d4a6b1bc924d7ad5b12febb4df806ce9d
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 13 Oct 2019 16:11:15 +0200

tweaks: reshuffle a fragment of code into two alternatives

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

diff --git a/src/files.c b/src/files.c @@ -2025,11 +2025,11 @@ int do_writeout(bool exiting, bool withprompt) /* Display newlines in filenames as ^J. */ as_an_at = FALSE; - given = copy_of( #ifndef NANO_TINY - (openfile->mark && !exiting) ? "" : + given = copy_of((openfile->mark && !exiting) ? "" : openfile->filename); +#else + given = copy_of(openfile->filename); #endif - openfile->filename); while (TRUE) { const char *msg;