Commit 34e086f0 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey Committed by Benno Schulenberg
Browse files

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

parent f2ac2011
Showing with 5 additions and 5 deletions
+5 -5
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment