From ac3a418ecc8073e6b76a73eeb5bf67ae8a6f4042 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Mon, 7 Jan 2002 14:41:32 +0000 Subject: [PATCH] - winio.c:edit_refresh() - Rename lines to nlines to fix AIX breakage (reported by Dennis Cranston, re-reported by arh14@cornell.edu) git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@983 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 4 ++++ winio.c | 14 +++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1e8c76df..cbe537b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,8 @@ CVS Code - +- winio.c: + edit_refresh() + - Rename lines to nlines to fix AIX breakage (reported by + Dennis Cranston, re-reported by arh14@cornell.edu). - po/pl.po: - New Polish, partial translation, by Cezary Sliwa . - po/it.po: diff --git a/winio.c b/winio.c index c70b6e6f..9cb6410c 100644 --- a/winio.c +++ b/winio.c @@ -874,7 +874,7 @@ void center_cursor(void) void edit_refresh(void) { static int noloop = 0; - int lines = 0, i = 0, currentcheck = 0; + int nlines = 0, i = 0, currentcheck = 0; filestruct *temp, *hold = current; if (current == NULL) @@ -882,14 +882,14 @@ void edit_refresh(void) temp = edittop; - while (lines <= editwinrows - 1 && lines <= totlines && temp != NULL) { + while (nlines <= editwinrows - 1 && nlines <= totlines && temp != NULL) { hold = temp; update_line(temp, current_x); if (temp == current) currentcheck = 1; temp = temp->next; - lines++; + nlines++; } /* If noloop == 1, then we already did an edit_update without finishing this function. So we don't run edit_update again */ @@ -899,10 +899,10 @@ void edit_refresh(void) } else if (noloop) noloop = 0; - if (lines <= editwinrows - 1) - while (lines <= editwinrows - 1) { - mvwaddstr(edit, lines, i, hblank); - lines++; + if (nlines <= editwinrows - 1) + while (nlines <= editwinrows - 1) { + mvwaddstr(edit, nlines, i, hblank); + nlines++; } if (temp == NULL) editbot = hold; -- 2.39.5