higuita@cadernoverde.com) (54) [FIXED].
- When using autoindent (-i), wrapped text does not get auto-indented
(55, discovered by Mark Senior) [FIXED].
+- When using -R (regex) and -p (pico mode), subsequent searches after
+ the first fail if no string is entered (56) [FIXED].
** Open BUGS **
- Added SAMELINE case to above. Added checks to cases 1b and
2b for placement of cursor.
- search.c:
+ print_replaced()
- s/occurence/occurrence typos (Jordi).
+ search_init()
+ - If using Pico mode and regex and same answer is entered, use
+ last_search string instead of answer (fixes BUG #56).
- nano.texi:
- Meta-Z correction and grammar in --enable-tiny desc (Neil Parks).
buf = nmalloc(strlen(last_search) + 5);
buf[0] = 0;
-
/* Okay, fun time. backupstring is our holder for what is being
returned from the statusq call. Using answer for this would be tricky.
Here, if we're using PICO_MODE, we only want nano to put the
return -1;
} else if (i == -2) { /* Same string */
#ifdef HAVE_REGEX_H
- if (ISSET(USE_REGEXP))
- regexp_init(answer);
+ if (ISSET(USE_REGEXP)) {
+
+ /* If we're in pico mode, answer is "", use last_search! */
+ if (ISSET(PICO_MODE))
+ regexp_init(last_search);
+ else
+ regexp_init(answer);
+ }
#else
;
#endif