nano

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

commit 65bf36baa58ce0bdbc276f75bd987bd036a2c114
parent 7598b77e75af321065102acdb016d567c00703dd
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Sun, 13 Nov 2016 19:47:15 +0100

rcfile: let a 'set fill' reenable hardwrapping

Otherwise the user can override a 'set nowrap' in /etc/nanorc only
via the command line.

This fixes https://savannah.gnu.org/bugs/?49593 reported by Shirish.

Diffstat:
Msrc/rcfile.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/rcfile.c b/src/rcfile.c @@ -1143,8 +1143,10 @@ void parse_rcfile(FILE *rcstream rcfile_error(N_("Requested fill size \"%s\" is invalid"), option); wrap_at = -CHARS_FROM_EOL; - } else + } else { + UNSET(NO_WRAP); free(option); + } } else #endif #ifndef NANO_TINY