From: Chris Allegretta Date: Mon, 13 Nov 2000 15:45:50 +0000 (+0000) Subject: replace update patch from rocco X-Git-Tag: v0.9.20~17 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0468612b4da29e6355bcac72df9e4b095072731e;p=nano.git replace update patch from rocco git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@280 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/search.c b/search.c index 569e0637..3dcc223f 100644 --- a/search.c +++ b/search.c @@ -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)