Not continuing when something is wrong, but instead skipping the rest of

the line.  This fixes Savannah bug #47289.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5691 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2016-02-28 11:04:36 +00:00
parent 07441adb14
commit 3e7591f534
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2016-02-28 Benno Schulenberg <bensberg@justemail.net>
* src/rcfile.c (parse_header_exp): Don't continue when something is
wrong -- skip the rest of the line. This fixes Savannah bug #47289.
2016-02-26 Benno Schulenberg <bensberg@justemail.net> 2016-02-26 Benno Schulenberg <bensberg@justemail.net>
* doc/man/nanorc.5, doc/texinfo/nano.texi, doc/syntax/nanorc.nanorc, * doc/man/nanorc.5, doc/texinfo/nano.texi, doc/syntax/nanorc.nanorc,
doc/nanorc.sample.in: Correct the description of 'justifytrim', add doc/nanorc.sample.in: Correct the description of 'justifytrim', add

View File

@ -880,8 +880,7 @@ void parse_header_exp(char *ptr)
if (*ptr != '"') { if (*ptr != '"') {
rcfile_error( rcfile_error(
N_("Regex strings must begin and end with a \" character")); N_("Regex strings must begin and end with a \" character"));
ptr = parse_next_regex(ptr); return;
continue;
} }
ptr++; ptr++;