nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit bd6e9685061de163aa4c5f001248472490d5e3c4
parent d5228b3d823934eb60e98409631886f6ef467b0d
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Fri, 26 May 2006 03:12:35 +0000

redundancy fix


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3569 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/winio.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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; } }