Fix BUG #56 found on SourceForge
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@559 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
94a78b8fb3
commit
74bb31b15a
2
BUGS
2
BUGS
|
@ -99,6 +99,8 @@
|
||||||
higuita@cadernoverde.com) (54) [FIXED].
|
higuita@cadernoverde.com) (54) [FIXED].
|
||||||
- When using autoindent (-i), wrapped text does not get auto-indented
|
- When using autoindent (-i), wrapped text does not get auto-indented
|
||||||
(55, discovered by Mark Senior) [FIXED].
|
(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 **
|
** Open BUGS **
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,11 @@ CVS code -
|
||||||
- Added SAMELINE case to above. Added checks to cases 1b and
|
- Added SAMELINE case to above. Added checks to cases 1b and
|
||||||
2b for placement of cursor.
|
2b for placement of cursor.
|
||||||
- search.c:
|
- search.c:
|
||||||
|
print_replaced()
|
||||||
- s/occurence/occurrence typos (Jordi).
|
- 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:
|
- nano.texi:
|
||||||
- Meta-Z correction and grammar in --enable-tiny desc (Neil Parks).
|
- Meta-Z correction and grammar in --enable-tiny desc (Neil Parks).
|
||||||
|
|
||||||
|
|
9
search.c
9
search.c
|
@ -81,7 +81,6 @@ int search_init(int replacing)
|
||||||
buf = nmalloc(strlen(last_search) + 5);
|
buf = nmalloc(strlen(last_search) + 5);
|
||||||
buf[0] = 0;
|
buf[0] = 0;
|
||||||
|
|
||||||
|
|
||||||
/* Okay, fun time. backupstring is our holder for what is being
|
/* Okay, fun time. backupstring is our holder for what is being
|
||||||
returned from the statusq call. Using answer for this would be tricky.
|
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
|
Here, if we're using PICO_MODE, we only want nano to put the
|
||||||
|
@ -140,8 +139,14 @@ int search_init(int replacing)
|
||||||
return -1;
|
return -1;
|
||||||
} else if (i == -2) { /* Same string */
|
} else if (i == -2) { /* Same string */
|
||||||
#ifdef HAVE_REGEX_H
|
#ifdef HAVE_REGEX_H
|
||||||
if (ISSET(USE_REGEXP))
|
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);
|
regexp_init(answer);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
;
|
;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue