From 5423680d677f9563c47f4797fc94d56edc9c18c5 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Tue, 28 Jun 2005 05:56:16 +0000
Subject: [PATCH] in edit_redraw(), make do_refresh a bool instead of an int

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

diff --git a/ChangeLog b/ChangeLog
index 2634f184..5261319a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -342,6 +342,8 @@ CVS code -
   statusbar()
 	- Set statusblank to 25 instead of 26, to match current Pico.
 	  (DLR)
+  edit_redraw()
+	- Make do_refresh a bool instead of an int. (DLR)
   do_yesno()
 	- Allow refreshing the screen via Ctrl-L, as Pico does. (DLR)
 	- Add a missing assert, and use actual_x() to calculate the
@@ -956,7 +958,7 @@ GNU nano 1.3.5 - 2004.11.22
 	  functions open_file(), execute_command(), and mallocstrassn();
 	  changes to read_line(), load_file(), read_file(), open_file(),
 	  get_next_filename(), do_insertfile(), do_insertfile_void(),
-	  do_alt_speller(), and edit_refresh(). (David Benbennick) DLR:
+	  do_alt_speller(), and edit_refresh(). (David Benbennick)  DLR:
 	  Add a few minor fixes to make sure that current is set
 	  properly in all cases, indicate on the statusbar when the file
 	  has a mix of DOS and Mac format lines, move the test for DOS
diff --git a/src/winio.c b/src/winio.c
index bf5f82b4..2400cd49 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -3520,7 +3520,7 @@ void edit_scroll(updown direction, int nlines)
  * updated. */
 void edit_redraw(const filestruct *old_current, size_t old_pww)
 {
-    int do_refresh = need_vertical_update(0) ||
+    bool do_refresh = need_vertical_update(0) ||
 	need_vertical_update(old_pww);
     const filestruct *foo;
 
-- 
GitLab