From 65bf36baa58ce0bdbc276f75bd987bd036a2c114 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 13 Nov 2016 19:47:15 +0100 Subject: [PATCH] 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. --- src/rcfile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rcfile.c b/src/rcfile.c index a570952c..af8c75dc 100644 --- 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