From c54c4d1eea73b518a8581aa92988ff119ed3510f Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sat, 18 Jun 2005 15:49:17 +0000
Subject: [PATCH] rename total_update() total_redraw() for consistency

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

diff --git a/ChangeLog b/ChangeLog
index 99625c9c..1a9138a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -219,7 +219,7 @@ CVS code -
 	  (DLR)
   do_spell()
 	- If the spell-checker printed any error messages onscreen, call
-	  total_update() to make sure they're cleared off. (DLR, found
+	  total_redraw() to make sure they're cleared off. (DLR, found
 	  by CHAO Wei-Lun)
   do_output()
 	- Properly allow wrapping when we insert a tab, for consistency.
@@ -312,7 +312,7 @@ CVS code -
 	  (DLR)
   do_yesno()
 	- Allow refreshing the screen via Ctrl-L, as Pico does. (DLR)
-  total_update()
+  total_redraw()
 	- Simplify to call clearok(TRUE) and wrefresh() on edit, which
 	  updates the entire screen in fewer function calls. (DLR)
 	- When using slang, use SLsmg_touch_screen() and SLsmg_refresh()
@@ -805,7 +805,7 @@ GNU nano 1.3.6 - 2005.03.20
 	- Refresh bottomwin using the value of currshortcut, and change
 	  the code around do_refresh() calls to accommodate this. (DLR)
 	- Split out the code that updates the screen before refreshing
-	  it into the new function total_update().
+	  it into the new function total_redraw().
   do_help()
 	- Refresh the screen when Ctrl-L is pressed in the help browser,
 	  as Pico does. (DLR)
diff --git a/src/files.c b/src/files.c
index 0c7562eb..af0205f0 100644
--- a/src/files.c
+++ b/src/files.c
@@ -2655,7 +2655,7 @@ char *do_browser(char *path, DIR *dir)
 
 	    /* Refresh the screen. */
 	    case NANO_REFRESH_KEY:
-		total_update();
+		total_redraw();
 		break;
 
 	    /* Go to a specific directory. */
diff --git a/src/nano.c b/src/nano.c
index c1dc528d..096753e9 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -2509,7 +2509,7 @@ void do_spell(void)
 
     /* If the spell-checker printed any error messages onscreen, make
      * sure they're cleared off. */
-    total_update();
+    total_redraw();
 
     if (spell_msg != NULL)
 	statusbar(_("Spell checking failed: %s: %s"), spell_msg,
diff --git a/src/proto.h b/src/proto.h
index 80a61450..5382ff24 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -693,7 +693,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_update(void);
+void total_redraw(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 abbb7d72..68ca7121 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -3664,7 +3664,7 @@ int do_yesno(bool all, const char *msg)
 	kbinput = get_kbinput(edit, &meta_key, &func_key);
 
 	if (kbinput == NANO_REFRESH_KEY) {
-	    total_update();
+	    total_redraw();
 	    continue;
 	} else if (kbinput == NANO_CANCEL_KEY)
 	    ok = -1;
@@ -3705,7 +3705,7 @@ int do_yesno(bool all, const char *msg)
     return ok;
 }
 
-void total_update(void)
+void total_redraw(void)
 {
 #ifdef USE_SLANG
     /* Slang curses emulation brain damage, part 3: If we just do what
@@ -3721,7 +3721,7 @@ void total_update(void)
 
 void total_refresh(void)
 {
-    total_update();
+    total_redraw();
     titlebar(NULL);
     edit_refresh();
     bottombars(currshortcut);
@@ -3905,7 +3905,7 @@ void do_help(void)
 	}
 
 	if (kbinput == NANO_REFRESH_KEY)
-	    total_update();
+	    total_redraw();
 	else {
 	    if (line == old_line && kbinput != ERR)
 		goto skip_redisplay;
-- 
GitLab