From 0468612b4da29e6355bcac72df9e4b095072731e Mon Sep 17 00:00:00 2001
From: Chris Allegretta <chrisa@asty.org>
Date: Mon, 13 Nov 2000 15:45:50 +0000
Subject: [PATCH] replace update patch from rocco

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@280 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 search.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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)
-- 
GitLab