From: Chris Allegretta Date: Mon, 16 Nov 2009 00:15:45 +0000 (+0000) Subject: 2009-11-15 Chris Allegretta X-Git-Tag: v2.1.99pre2~8 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=fc48347fb80b025aa477b7ddb0de174384a44b95;p=nano.git 2009-11-15 Chris Allegretta * winio.c (edit_refresh): Always computer maxsize regardless of whether smooth scrolling is enabled. Fixes Savannah bug 28024 by Mike Frysinger. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4427 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 48e40959..0b3851e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-11-15 Chris Allegretta + * winio.c (edit_refresh): Always computer maxsize regardless of whether smooth scrolling + is enabled. Fixes Savannah bug 28024 by Mike Frysinger. + GNU nano 2.1.99pre1 - 2009.11.15 2009-11-14 Chris Allegretta * move.c (do_first_line, do_last_line): Just set edit_refresh_needed rather than diff --git a/src/winio.c b/src/winio.c index 1bc8055c..96d25fc9 100644 --- a/src/winio.c +++ b/src/winio.c @@ -3224,7 +3224,7 @@ void edit_refresh(void) int nlines; /* Figure out what maxrows should really be */ - if (ISSET(SOFTWRAP) && openfile->current->lineno > openfile->edittop->lineno) + if (openfile->current->lineno > openfile->edittop->lineno) compute_maxrows(); if (openfile->current->lineno < openfile->edittop->lineno ||