From fa38795ef55c3031b19dee7fd04ce1b85fd92dff Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sat, 26 Aug 2006 16:50:51 +0000
Subject: [PATCH] miscellaneous minor fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3854 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 src/prompt.c |  8 ++++----
 src/proto.h  |  8 ++++----
 src/search.c |  8 ++++----
 src/winio.c  | 16 ++++++++--------
 4 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/prompt.c b/src/prompt.c
index c49c1f62..626ca252 100644
--- a/src/prompt.c
+++ b/src/prompt.c
@@ -910,13 +910,13 @@ void update_statusbar_line(const char *curranswer, size_t index)
 }
 
 /* Return TRUE if we need an update after moving horizontally, and FALSE
- * otherwise.  We need one if old_pww and statusbar_pww are on different
- * pages. */
-bool need_statusbar_horizontal_update(size_t old_pww)
+ * otherwise.  We need one if pww_save and statusbar_pww are on
+ * different pages. */
+bool need_statusbar_horizontal_update(size_t pww_save)
 {
     size_t start_col = strlenpt(prompt) + 1;
 
-    return get_statusbar_page_start(start_col, start_col + old_pww) !=
+    return get_statusbar_page_start(start_col, start_col + pww_save) !=
 	get_statusbar_page_start(start_col, start_col + statusbar_pww);
 }
 
diff --git a/src/proto.h b/src/proto.h
index e17efac4..4e13dde0 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -518,7 +518,7 @@ size_t statusbar_xplustabs(void);
 size_t get_statusbar_page_start(size_t start_col, size_t column);
 void reset_statusbar_cursor(void);
 void update_statusbar_line(const char *curranswer, size_t index);
-bool need_statusbar_horizontal_update(size_t old_pww);
+bool need_statusbar_horizontal_update(size_t pww_save);
 void total_statusbar_refresh(void (*refresh_func)(void));
 int get_prompt_string(bool allow_tabs,
 #ifndef DISABLE_TABCOMP
@@ -773,10 +773,10 @@ void reset_cursor(void);
 void edit_draw(const filestruct *fileptr, const char *converted, int
 	line, size_t start);
 void update_line(const filestruct *fileptr, size_t index);
-bool need_horizontal_update(size_t old_pww);
-bool need_vertical_update(size_t old_pww);
+bool need_horizontal_update(size_t pww_save);
+bool need_vertical_update(size_t pww_save);
 void edit_scroll(scroll_dir direction, ssize_t nlines);
-void edit_redraw(const filestruct *old_current, size_t old_pww);
+void edit_redraw(const filestruct *old_current, size_t pww_save);
 void edit_refresh(void);
 void edit_update(update_type location);
 void total_redraw(void);
diff --git a/src/search.c b/src/search.c
index 1842d120..f7741dbe 100644
--- a/src/search.c
+++ b/src/search.c
@@ -421,7 +421,7 @@ void do_search(void)
 {
     filestruct *fileptr = openfile->current;
     size_t fileptr_x = openfile->current_x;
-    size_t old_pww = openfile->placewewant;
+    size_t pww_save = openfile->placewewant;
     int i;
     bool didfind;
 
@@ -493,7 +493,7 @@ void do_search(void)
     }
 
     openfile->placewewant = xplustabs();
-    edit_redraw(fileptr, old_pww);
+    edit_redraw(fileptr, pww_save);
     search_replace_abort();
 }
 
@@ -503,7 +503,7 @@ void do_research(void)
 {
     filestruct *fileptr = openfile->current;
     size_t fileptr_x = openfile->current_x;
-    size_t old_pww = openfile->placewewant;
+    size_t pww_save = openfile->placewewant;
     bool didfind;
 
     search_init_globals();
@@ -555,7 +555,7 @@ void do_research(void)
         statusbar(_("No current search pattern"));
 
     openfile->placewewant = xplustabs();
-    edit_redraw(fileptr, old_pww);
+    edit_redraw(fileptr, pww_save);
     search_replace_abort();
 }
 #endif
diff --git a/src/winio.c b/src/winio.c
index 49f30b3f..bec32fe6 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -2706,28 +2706,28 @@ void update_line(const filestruct *fileptr, size_t index)
 }
 
 /* Return TRUE if we need an update after moving horizontally, and FALSE
- * otherwise.  We need one if the mark is on or if old_pww and
+ * otherwise.  We need one if the mark is on or if pww_save and
  * placewewant are on different pages. */
-bool need_horizontal_update(size_t old_pww)
+bool need_horizontal_update(size_t pww_save)
 {
     return
 #ifndef NANO_TINY
 	openfile->mark_set ||
 #endif
-	get_page_start(old_pww) !=
+	get_page_start(pww_save) !=
 	get_page_start(openfile->placewewant);
 }
 
 /* Return TRUE if we need an update after moving vertically, and FALSE
- * otherwise.  We need one if the mark is on or if old_pww and
+ * otherwise.  We need one if the mark is on or if pww_save and
  * placewewant are on different pages. */
-bool need_vertical_update(size_t old_pww)
+bool need_vertical_update(size_t pww_save)
 {
     return
 #ifndef NANO_TINY
 	openfile->mark_set ||
 #endif
-	get_page_start(old_pww) !=
+	get_page_start(pww_save) !=
 	get_page_start(openfile->placewewant);
 }
 
@@ -2837,10 +2837,10 @@ void edit_scroll(scroll_dir direction, ssize_t nlines)
 
 /* Update any lines between old_current and current that need to be
  * updated.  Use this if we've moved without changing any text. */
-void edit_redraw(const filestruct *old_current, size_t old_pww)
+void edit_redraw(const filestruct *old_current, size_t pww_save)
 {
     bool do_redraw = need_vertical_update(0) ||
-	need_vertical_update(old_pww);
+	need_vertical_update(pww_save);
     const filestruct *foo = NULL;
 
     /* If either old_current or current is offscreen, scroll the edit
-- 
GitLab