replace update patch from rocco

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@280 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Chris Allegretta 2000-11-13 15:45:50 +00:00
parent 271e972ff0
commit 0468612b4d

View File

@ -461,8 +461,10 @@ int do_replace_loop(char *prevanswer, filestruct *begin, int *beginx,
fileptr = findnextstr(replaceall, begin, *beginx, prevanswer);
/* No more matches. Done! */
if (!fileptr)
if (!fileptr) {
wrefresh(edit);
break;
}
/* Make sure only wholewords are found */
if (wholewords)