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.master
parent
7598b77e75
commit
65bf36baa5
|
@ -1143,8 +1143,10 @@ void parse_rcfile(FILE *rcstream
|
||||||
rcfile_error(N_("Requested fill size \"%s\" is invalid"),
|
rcfile_error(N_("Requested fill size \"%s\" is invalid"),
|
||||||
option);
|
option);
|
||||||
wrap_at = -CHARS_FROM_EOL;
|
wrap_at = -CHARS_FROM_EOL;
|
||||||
} else
|
} else {
|
||||||
|
UNSET(NO_WRAP);
|
||||||
free(option);
|
free(option);
|
||||||
|
}
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
|
|
Loading…
Reference in New Issue