tweaks: rename a variable in edit_redraw(), to make sense

master
David Lawrence Ramsey 2017-01-19 01:15:43 -06:00 committed by Benno Schulenberg
parent f2ac20114e
commit 34e086f038
1 changed files with 5 additions and 5 deletions

View File

@ -2894,13 +2894,13 @@ void edit_redraw(filestruct *old_current)
#ifndef NANO_TINY
/* If the mark is on, update all lines between old_current and current. */
if (openfile->mark_set) {
filestruct *foo = old_current;
filestruct *line = old_current;
while (foo != openfile->current) {
update_line(foo, 0);
while (line != openfile->current) {
update_line(line, 0);
foo = (foo->lineno > openfile->current->lineno) ?
foo->prev : foo->next;
line = (line->lineno > openfile->current->lineno) ?
line->prev : line->next;
}
} else
#endif