]> git.wh0rd.org Git - nano.git/commitdiff
replace update patch from rocco
authorChris Allegretta <chrisa@asty.org>
Mon, 13 Nov 2000 15:45:50 +0000 (15:45 +0000)
committerChris Allegretta <chrisa@asty.org>
Mon, 13 Nov 2000 15:45:50 +0000 (15:45 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@280 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

search.c

index 569e063798c171a881b751c070a5b01bc540c4f3..3dcc223fa22dc959c194acce0925a8be3498510b 100644 (file)
--- 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)