- 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/trunk/nano@983 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Chris Allegretta 2002-01-07 14:41:32 +00:00
parent 3da9139159
commit 3d0739c384
2 changed files with 11 additions and 7 deletions

View File

@ -2,6 +2,10 @@ CVS code -
- nano.c: - nano.c:
usage() usage()
- Remove extra \n in --keypad description (Jordi). - Remove extra \n in --keypad description (Jordi).
- winio.c:
edit_refresh()
- Rename lines to nlines to fix AIX breakage (reported by
Dennis Cranston, re-reported by arh14@cornell.edu).
- po/ca.po, po/es.po: - po/ca.po, po/es.po:
- Catalan and Spanish translation updates. - Catalan and Spanish translation updates.

14
winio.c
View File

@ -1076,7 +1076,7 @@ void center_cursor(void)
void edit_refresh(void) void edit_refresh(void)
{ {
static int noloop = 0; static int noloop = 0;
int lines = 0, i = 0, currentcheck = 0; int nlines = 0, i = 0, currentcheck = 0;
filestruct *temp, *hold = current; filestruct *temp, *hold = current;
if (current == NULL) if (current == NULL)
@ -1084,14 +1084,14 @@ void edit_refresh(void)
temp = edittop; temp = edittop;
while (lines <= editwinrows - 1 && lines <= totlines && temp != NULL) { while (nlines <= editwinrows - 1 && nlines <= totlines && temp != NULL) {
hold = temp; hold = temp;
update_line(temp, current_x); update_line(temp, current_x);
if (temp == current) if (temp == current)
currentcheck = 1; currentcheck = 1;
temp = temp->next; temp = temp->next;
lines++; nlines++;
} }
/* If noloop == 1, then we already did an edit_update without finishing /* If noloop == 1, then we already did an edit_update without finishing
this function. So we don't run edit_update again */ this function. So we don't run edit_update again */
@ -1101,10 +1101,10 @@ void edit_refresh(void)
} else if (noloop) } else if (noloop)
noloop = 0; noloop = 0;
if (lines <= editwinrows - 1) if (nlines <= editwinrows - 1)
while (lines <= editwinrows - 1) { while (nlines <= editwinrows - 1) {
mvwaddstr(edit, lines, i, hblank); mvwaddstr(edit, nlines, i, hblank);
lines++; nlines++;
} }
if (temp == NULL) if (temp == NULL)
editbot = hold; editbot = hold;