From: David Lawrence Ramsey Date: Fri, 26 May 2006 03:12:35 +0000 (+0000) Subject: redundancy fix X-Git-Tag: v1.3.12~111 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=bd6e9685061de163aa4c5f001248472490d5e3c4;p=nano.git redundancy fix git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3569 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/winio.c b/src/winio.c index b7246f1f..f14ca274 100644 --- a/src/winio.c +++ b/src/winio.c @@ -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; } }