From 85616c499b77b7523c971c77eea583a51ba48a71 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Thu, 17 Mar 2005 18:11:08 +0000
Subject: [PATCH] add missing blank line, and rename total_blank() to
 total_update(), as the latter is more accurate

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

diff --git a/ChangeLog b/ChangeLog
index 737c98b4..97fff99e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -315,8 +315,8 @@ CVS code -
   total_refresh()
 	- Refresh bottomwin using the value of currshortcut, and change
 	  the code around do_refresh() calls to accommodate this. (DLR)
-	- Split out the code that blanks the screen before refreshing it
-	  into the new function total_blank().
+	- Split out the code that updates the screen before refreshing
+	  it into the new function total_update().
   do_help()
 	- Refresh the screen when Ctrl-L is pressed in the help browser,
 	  as Pico does. (DLR)
diff --git a/src/proto.h b/src/proto.h
index 04eb01a0..c4339783 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -674,7 +674,7 @@ void edit_redraw(const filestruct *old_current, size_t old_pww);
 void edit_refresh(void);
 void edit_update(topmidnone location);
 int do_yesno(bool all, const char *msg);
-void total_blank(void);
+void total_update(void);
 void total_refresh(void);
 void display_main_list(void);
 void do_cursorpos(bool constant);
diff --git a/src/winio.c b/src/winio.c
index d781aed2..f1cd5a26 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -3732,7 +3732,7 @@ int do_yesno(bool all, const char *msg)
     return ok;
 }
 
-void total_blank(void)
+void total_update(void)
 {
     clearok(topwin, TRUE);
     clearok(edit, TRUE);
@@ -3748,7 +3748,7 @@ void total_blank(void)
 
 void total_refresh(void)
 {
-    total_blank();
+    total_update();
     titlebar(NULL);
     edit_refresh();
     bottombars(currshortcut);
@@ -3879,6 +3879,7 @@ void do_help(void)
 
     /* Set help_text as the string to display. */
     help_init();
+
     assert(help_text != NULL);
 
 #ifndef DISABLE_MOUSE
@@ -3935,7 +3936,7 @@ void do_help(void)
 	}
 
 	if (kbinput == NANO_REFRESH_KEY)
-	    total_blank();
+	    total_update();
 	else {
 	    if (line == old_line && kbinput != ERR)
 		goto skip_redisplay;
-- 
GitLab