From a73025d7315a72a31b931f45bb10d2023e9b8769 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Thu, 30 Jun 2005 04:17:18 +0000
Subject: [PATCH] in do_replace_highlight(), call wnoutrefresh(edit) to make
 sure that the highlight is drawn properly

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2800 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog   | 2 ++
 src/winio.c | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index adc53d9e..e454cc3a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -392,6 +392,8 @@ CVS code -
 	  have a zero-length regex. (DLR)
 	- Rename variable highlight_flag to highlight, for consistency.
 	  (DLR)
+	- Call wnoutrefresh(edit) to make sure that the highlight is
+	  drawn properly. (DLR)
   do_credits()
 	- Save the keystroke that breaks us out of the credits (if any)
 	  and put it back so that it isn't lost.  This is especially
diff --git a/src/winio.c b/src/winio.c
index fd50cb1f..c0a7c130 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -4013,6 +4013,9 @@ void do_replace_highlight(bool highlight, const char *word)
 
     if (highlight)
 	wattroff(edit, A_REVERSE);
+
+    /* Refresh the edit window. */
+    wnoutrefresh(edit);
 }
 
 #ifndef NDEBUG
-- 
GitLab