- search.c:do_replace_loop() - Remove check for answer being a blank string, presumed to a PICO_MODE holdover, but it stops us from doing a blank spelling replacement
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1349 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
497b5040a7
commit
ca7113afee
|
@ -168,6 +168,9 @@ Changes
|
||||||
- Fix bug where if text on the magicline was replaced (which can
|
- Fix bug where if text on the magicline was replaced (which can
|
||||||
be done via a regexp replace of "^$" with something other than
|
be done via a regexp replace of "^$" with something other than
|
||||||
""), a new magicline wouldn't be created. (DLR)
|
""), a new magicline wouldn't be created. (DLR)
|
||||||
|
- Remove check for answer being a blank string, presumed to be
|
||||||
|
a PICO_MODE holdover, but it stops us from doing a blank
|
||||||
|
spelling replacement.
|
||||||
do_replace()
|
do_replace()
|
||||||
- For greater Pico compatibility, when an attempt to replace a
|
- For greater Pico compatibility, when an attempt to replace a
|
||||||
string results in 0 replacements due to the string's not being
|
string results in 0 replacements due to the string's not being
|
||||||
|
|
3
search.c
3
search.c
|
@ -571,9 +571,6 @@ int do_replace_loop(const char *prevanswer, const filestruct *begin,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (answer[0] == '\0')
|
|
||||||
answer = mallocstrcpy(answer, last_replace);
|
|
||||||
|
|
||||||
last_replace = mallocstrcpy(last_replace, answer);
|
last_replace = mallocstrcpy(last_replace, answer);
|
||||||
while (1) {
|
while (1) {
|
||||||
/* Sweet optimization by Rocco here */
|
/* Sweet optimization by Rocco here */
|
||||||
|
|
Loading…
Reference in New Issue