From 3af1e5085515bff9ec3d1d8e9df5d94fdc80dcdd Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Wed, 24 May 2006 18:23:21 +0000
Subject: [PATCH] per Benno Schulenberg's patch, fix the statusbar's not
 blanking properly after verbatim input

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

diff --git a/ChangeLog b/ChangeLog
index 8124feb7..6baaccfc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -82,14 +82,15 @@ CVS code -
 	  resizes more consistent.  Changes to handle_sigwinch(),
 	  main(), get_kbinput(), parse_kbinput(), get_byte_kbinput(),
 	  and get_unicode_kbinput(); removal of reset_kbinput(). (DLR)
-	- Handle statusbar blanking in one place instead of many, so
+	- Handle statusbar blanking in two places instead of many, so
 	  that it always works consistently.  Changes to do_browser(),
 	  do_cut_text(), do_uncut_text(), do_first_line(),
 	  do_last_line(), do_page_up(), do_page_down(), do_para_begin(),
 	  do_para_end(), do_para_end(), do_next_word(), do_prev_word(),
 	  do_home(), do_end(), do_up(), do_scroll_up(), do_down(),
 	  do_scroll_down(), do_left(), do_right(), do_indent_marked(),
-	  and get_kbinput(). (Benno Schulenberg, minor tweaks by DLR)
+	  do_verbatim_input(), and get_kbinput(). (Benno Schulenberg,
+	  minor tweaks by DLR)
 	- Handle prepending of wrapped text in one place instead of
 	  many, so that it always works consistently.  Changes to
 	  do_uncut_text(), do_insertfile(), do_page_up(),
diff --git a/src/text.c b/src/text.c
index ab941aa2..b51259a7 100644
--- a/src/text.c
+++ b/src/text.c
@@ -2445,4 +2445,7 @@ void do_verbatim_input(void)
     do_output(output, kbinput_len, TRUE);
 
     free(output);
+
+    /* Blank the statusbar if we need to. */
+    check_statusblank();
 }
-- 
GitLab