tweaks: rename a variable in edit_redraw(), to make sense
parent
f2ac20114e
commit
34e086f038
10
src/winio.c
10
src/winio.c
|
@ -2894,13 +2894,13 @@ void edit_redraw(filestruct *old_current)
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
/* If the mark is on, update all lines between old_current and current. */
|
/* If the mark is on, update all lines between old_current and current. */
|
||||||
if (openfile->mark_set) {
|
if (openfile->mark_set) {
|
||||||
filestruct *foo = old_current;
|
filestruct *line = old_current;
|
||||||
|
|
||||||
while (foo != openfile->current) {
|
while (line != openfile->current) {
|
||||||
update_line(foo, 0);
|
update_line(line, 0);
|
||||||
|
|
||||||
foo = (foo->lineno > openfile->current->lineno) ?
|
line = (line->lineno > openfile->current->lineno) ?
|
||||||
foo->prev : foo->next;
|
line->prev : line->next;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue