]> git.wh0rd.org Git - nano.git/commitdiff
redundancy fix
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 26 May 2006 03:12:35 +0000 (03:12 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 26 May 2006 03:12:35 +0000 (03:12 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3569 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/winio.c

index b7246f1fe0f925932a10cff8a0ee3fde0ebea25c..f14ca2747d11889957d4e92c2b1f472c779abb7d 100644 (file)
@@ -2866,12 +2866,12 @@ void edit_redraw(const filestruct *old_current, size_t old_pww)
 
 #ifndef NANO_TINY
        /* If the mark is on, update all the lines between the old last
-        * line of the edit window and current. */
+        * line of the edit window and edittop. */
        if (openfile->mark_set) {
-           while (foo != openfile->current) {
+           while (foo != openfile->edittop) {
                update_line(foo, 0);
 
-               foo = (foo->lineno > openfile->current->lineno) ?
+               foo = (foo->lineno > openfile->edittop->lineno) ?
                        foo->prev : foo->next;
            }
        }