From 072f86c5f9ec1f524dab188f8cabd31ecbe2b79f Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Wed, 15 Jun 2005 20:21:02 +0000
Subject: [PATCH] in do_spell(), if the spell-checker printed any error
 messages onscreen, make sure they're cleared off

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

diff --git a/ChangeLog b/ChangeLog
index c4412bc1..9dcf7706 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -178,6 +178,9 @@ CVS code -
 	- Replace a set_modified() with SET(MODIFIED) to avoid an
 	  unnecessary update, and remove an unneeded clearok(FALSE).
 	  (DLR)
+  do_spell()
+	- If the spell-checker printed any error messages onscreen, make
+	  sure they're cleared off. (DLR, found by CHAO Wei-Lun)
   do_output()
 	- Properly allow wrapping when we insert a tab, for consistency.
 	  (DLR)
diff --git a/src/nano.c b/src/nano.c
index d9bd8e2b..52a23907 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -2476,6 +2476,10 @@ void do_spell(void)
     unlink(temp);
     free(temp);
 
+    /* If the spell-checker printed any error messages onscreen, make
+     * sure they're cleared off. */
+    total_update();
+
     if (spell_msg != NULL)
 	statusbar(_("Spell checking failed: %s: %s"), spell_msg,
 		strerror(errno));
-- 
GitLab