-C, --relative, changes to do_cursorpos().
- Makefile.am:
- Add SYSCONFDIR to DEFS, so we can have an /etc/nanorc.
+- rcfile.c
+ parse_next_rege()
+ - Allow " symbol to be in regex without leading \ by checking
+ for *ptr+1 is not the end of the regex.
- utils.c:
strstrwrapper()
- NANO_SMALL test was backwards (Ken Tyler).
char *parse_next_regex(char *ptr)
{
- char prev = ' ';
- while ((*ptr != '"' || prev == '\\') && *ptr != '\n' && *ptr != '\0') {
- prev = *ptr;
+ while ((*ptr != '"' || (*(ptr+1) != ' ' && *(ptr+1) != '\n'))
+ && *ptr != '\n' && *ptr != '\0')
ptr++;
- }
if (*ptr == '\0')
return NULL;